-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
False positive not-a-mapping
with cast
and TypeVar
#8074
Closed
phy1729 opened this issue
Jan 17, 2023
· 3 comments
· Fixed by pylint-dev/astroid#1982, pylint-dev/astroid#2158 or pylint-dev/astroid#2303
Closed
False positive not-a-mapping
with cast
and TypeVar
#8074
phy1729 opened this issue
Jan 17, 2023
· 3 comments
· Fixed by pylint-dev/astroid#1982, pylint-dev/astroid#2158 or pylint-dev/astroid#2303
Labels
Astroid
Related to astroid
False Positive 🦟
A message is emitted but nothing is wrong with the code
inference
Milestone
Comments
phy1729
added
the
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
label
Jan 17, 2023
clavedeluna
added
False Positive 🦟
A message is emitted but nothing is wrong with the code
and removed
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
labels
Jan 18, 2023
worth mentioning that calling also commenting out line |
This was referenced Jan 28, 2023
Closed
Thanks for the report @phy1729! This will be fixed in pylint-dev/astroid#1982 and released probably with the next version. |
The fixed cause a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Astroid
Related to astroid
False Positive 🦟
A message is emitted but nothing is wrong with the code
inference
Bug description
The following code results in a false positive. (The type hints may be removed; however, the cast and dummy assignment may not).
Configuration
No response
Command used
Pylint output
Expected behavior
No error should be produced.
Pylint version
OS / Environment
macOS 13
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: