-
-
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
Partial typing of imports.py
#6982
Conversation
Pull Request Test Coverage Report for Build 2663433329
π - Coveralls |
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.
Maybe we could create an alias for nodes.Import | nodes.ImportFrom
?
node: nodes.If | ||
| nodes.Expr | ||
| nodes.Comprehension | ||
| nodes.IfExp | ||
| nodes.Assign | ||
| nodes.AssignAttr | ||
| nodes.TryExcept | ||
| nodes.TryFinally, |
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 this can be everything except an import node it could also be a classDef or a lot of things, right ? Maybe NodeNG
would make sense ?
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.
See L577. I thought I would be explicit just like we normally are for visit_
methods.
That said L622 shows that L602 is incorrect.
I'm drafting as I'd like to fix that in this PR.
There is Let's put pylint-dev/astroid#1633 in TLDR: Drafting as we need |
This comment has been minimized.
This comment has been minimized.
d2aacb2
to
58e2ab3
Compare
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 mypy is happy, I'm happy too π
π€ Effect of this PR on checked open source code: π€ Effect on django:
The following messages are no longer emitted:
Effect on pandas:
The following messages are no longer emitted:
Effect on pytest:
Effect on sentry:
The following messages are no longer emitted:
This comment was generated for commit 58e2ab3 |
Type of Changes
Description