-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ugettext_lazy('').format #80
Comments
atodorov
pushed a commit
to MrSenko/django-pylint
that referenced
this issue
Jan 17, 2018
Fix E1101:Instance of '__proxy__' has no 'format' member' when using .format() on a ugettext_lazy translation NOTE: merged with modifications. Instead of returning str, returns '' Fixes pylint-dev#80 Origina PR: pylint-dev#100
atodorov
pushed a commit
to MrSenko/django-pylint
that referenced
this issue
Jan 17, 2018
Fix E1101:Instance of '__proxy__' has no 'format' member' when using .format() on a ugettext_lazy translation NOTE: merged with modifications. Instead of returning str, returns '' Fixes pylint-dev#80 Origina PR: pylint-dev#100
atodorov
pushed a commit
to MrSenko/django-pylint
that referenced
this issue
Jan 18, 2018
Fix E1101:Instance of '__proxy__' has no 'format' member' when using .format() on a ugettext_lazy translation NOTE: merged with modifications. Instead of returning str, returns '' Fixes pylint-dev#80 Origina PR: pylint-dev#100
atodorov
pushed a commit
to MrSenko/django-pylint
that referenced
this issue
Jan 18, 2018
Fix E1101:Instance of '__proxy__' has no 'format' member' when using .format() on a ugettext_lazy translation NOTE: merged with modifications. Instead of returning str, returns '' Fixes pylint-dev#80 Origina PR: pylint-dev#100
atodorov
pushed a commit
to MrSenko/django-pylint
that referenced
this issue
Jan 18, 2018
Fix E1101:Instance of '__proxy__' has no 'format' member' when using .format() on a ugettext_lazy translation NOTE: merged with modifications. Instead of returning str, returns '' Fixes pylint-dev#80 Origina PR: pylint-dev#100
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this great extension.
Currently
pylint
withpylint-django
returns errorpylint: [no-member] Instance of '__proxy__' has no 'format' member
for something likeugettet_lazy('').format
.I fixed it by changing
ugettext_lazy = lambda x: None
tougettext_lazy = lambda x: ''
in filepylint_django/transforms/transforms/django_utils_translation.py
. Is it alright?The text was updated successfully, but these errors were encountered: