Skip to content

Commit ad9a33a

Browse files
author
Petr
committed
Merge branch 'pr-100'
PR: pylint-dev#100
2 parents e3c1945 + c5b56e6 commit ad9a33a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
ugettext_lazy = lambda x: None
1+
# ugettext_lazy is supposed to return six.text_type
2+
ugettext_lazy = lambda x: str
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"""
2+
Checks that Pylint does not complain about django lazy proxy
3+
when using ugettext_lazy
4+
"""
5+
from django.utils.translation import ugettext_lazy
6+
7+
ugettext_lazy('{something}').format(something='lala')

0 commit comments

Comments
 (0)