We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With this code
from typing import ForwardRef Foo = ForwardRef('Foo') class Foo: pass
I get
foo.py:5:0: E0102: class already defined line 3 (function-redefined)
I would expect pylint to support this construction
$ python3 -m pylint --version __main__.py 2.1.1 astroid 2.0.4 Python 3.7.0 (default, Jul 23 2018, 20:22:55) [Clang 9.1.0 (clang-902.0.39.2)]
The text was updated successfully, but these errors were encountered:
Thanks for creating an issue! This definitely makes sense.
Sorry, something went wrong.
Similarly,
from typing import Callable, Any f: Callable[[], Any] def f(): pass
Gives E0102: function already defined line 2 (function-redefined)
E0102: function already defined line 2 (function-redefined)
2a5c1ab
No branches or pull requests
Steps to reproduce
Current behavior
With this code
I get
Expected behavior
I would expect pylint to support this construction
pylint --version output
The text was updated successfully, but these errors were encountered: