-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Upgrade mypy to 0.940 #1466
Upgrade mypy to 0.940 #1466
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update existing type: ignore
without error codes?
From what I've seen there are only a few in unittest_nodes
and unittest_nodes_lineno
.
@@ -1222,7 +1222,7 @@ def test_type_comments_with() -> None: | |||
""" | |||
with a as b: # type: int | |||
pass | |||
with a as b: # type: ignore | |||
with a as b: # type: ignore[name-defined] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't saw that those these here are inside code blocks π
Doesn't matter now I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting that mypy
picks up on those. Do you know if code in code blocks is checked? If not, this option also probably shouldn't?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's interesting that
mypy
picks up on those. Do you know if code in code blocks is checked? If not, this option also probably shouldn't?
Mypy didn't notice those. I just searched for type: ignore
and looked which ones didn't have error codes π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken they did. I think I saw an error message about not having the error specified for these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm π€ I just removed the comment and ran mypy. Didn't saw it.
Under the hood mypy uses ast parsing and this would be just one string node. So hard to imagine that it would mark it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably my memory messing up π
Steps
Description
Type of Changes
Related Issue
Can't merge yet as the
pre-commit
mypy mirror hasn't been updated yet, see: https://github.com/pre-commit/mirrors-mypy