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
Lint the following piece of code
import typing if typing.TYPE_CHECKING: from typing_extensions import Literal AllowedValues = Literal['hello', 'world']
pylint:E0601 Using variable 'Literal' before assignment (used-before-assignment)
The code should pass this rule (no errors)
pylint 2.4.0 astroid 2.2.5 Python 3.7.2 (default, Feb 12 2019, 08:15:36) [Clang 10.0.0 (clang-1000.11.45.5)]
The text was updated successfully, but these errors were encountered:
2fa5d43
No branches or pull requests
Steps to reproduce
Lint the following piece of code
Current behavior
pylint:E0601 Using variable 'Literal' before assignment (used-before-assignment)
Expected behavior
The code should pass this rule (no errors)
pylint --version output
pylint 2.4.0
astroid 2.2.5
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[Clang 10.0.0 (clang-1000.11.45.5)]
The text was updated successfully, but these errors were encountered: