-
-
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
Add some manual typing changes #6325
Conversation
Pull Request Test Coverage Report for Build 2169486554
π - Coveralls |
pylint/checkers/variables.py
Outdated
@@ -516,7 +516,7 @@ class ScopeConsumer(NamedTuple): | |||
|
|||
to_consume: dict[str, list[nodes.NodeNG]] | |||
consumed: dict[str, list[nodes.NodeNG]] | |||
consumed_uncertain: DefaultDict[str, list[nodes.NodeNG]] | |||
consumed_uncertain: collections.defaultdict[str, list[nodes.NodeNG]] |
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.
We can use defaultdict
directly. Even if we already import collections
.
from collections import defaultdict
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.
I agree with @cdce8p that collections.DefaultDict is a little too verbose, otherwise LGTM.
Thanks @cdce8p for fixing and merging this. I was away this evening! |
No problem! I had checked out the branch locally anyway, so it wasn't a big deal. |
And thanks for the many reviews today! This could have taken a couple of days of back-and-forth if you hadn't been so active today! Much appreciated π |
It's you who did the majority of the work while also fixing a regression! Thank you π Now we just need to do that again for astroid π |
Type of Changes
Description
Ref #4683.