Skip to content
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

Closed
sassanh opened this issue Jul 20, 2016 · 0 comments
Closed

ugettext_lazy('').format #80

sassanh opened this issue Jul 20, 2016 · 0 comments

Comments

@sassanh
Copy link

sassanh commented Jul 20, 2016

Thanks for this great extension.
Currently pylint with pylint-django returns error pylint: [no-member] Instance of '__proxy__' has no 'format' member for something like ugettet_lazy('').format.
I fixed it by changing ugettext_lazy = lambda x: None to ugettext_lazy = lambda x: '' in file pylint_django/transforms/transforms/django_utils_translation.py. Is it alright?

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant