-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
invalid-name
type alias false-positive for union values
#8487
Comments
Weirdly enough, the PR even adjusts an existing test to fit this (IMHO clearly wrong) naming scheme for a variable (not a type!): https://github.com/PyCQA/pylint/pull/7116/files#diff-53259554143b2179e9e991fecf0879ac4c0eaf61d5f58360ce4491c62f72c6b5 |
Which test are you referring to in that diff? |
tests/functional/r/regression_02/regression_3979.py with: -foo: Union[str, BasePathLike] = "bar"
+Foo: Union[str, BasePathLike] = "bar" |
That fix is because we disallow But, this is indeed a false positive that flew under the radar. I'm checking if I can easily fix this! |
Bug description
With something like:
pylint claims a wrong type alias name, with no type aliases involved.
Configuration
No response
Command used
Pylint output
Expected behavior
No output
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: