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
RUF012
The following snippet produces an error which I think it shouldn't since there is no type annotation for that variable:
# test.py class A: var = ["hey", "there"]
This gets particularly annoying in test suites, since adding type hints there (specially in this case) is not required imo.
ruff test.py --select RUF --isolated
tests/ruff.py:2:11: RUF012 Mutable class attributes should be annotated with `typing.ClassVar` Found 1 error.
ruff 0.0.274
The text was updated successfully, but these errors were encountered:
related #5243
Sorry, something went wrong.
yeah just opened within a minute of each other :D
(Closing as a duplicate of #5244.)
I think you meant #5243, since this is #5244.
No branches or pull requests
The following snippet produces an error which I think it shouldn't since there is no type annotation for that variable:
This gets particularly annoying in test suites, since adding type hints there (specially in this case) is not required imo.
Command
ruff test.py --select RUF --isolated
Version
ruff 0.0.274
The text was updated successfully, but these errors were encountered: