-
-
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
Avoid invalid-name when assigned value is a typing module type #1406
Conversation
I know it's more of a hack than proper solution (those values should be inferred in astroid), but I feel like we need them as soon as possible for 1.7.0 release. |
@@ -139,6 +139,19 @@ def _is_multi_naming_match(match, node_type, confidence): | |||
match.lastgroup not in EXEMPT_NAME_CATEGORIES | |||
and (node_type != 'method' or confidence != interfaces.INFERENCE_FAILURE)) | |||
|
|||
def is_typing_type(obj): |
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 this should be a brain plugin rather than a specific inference function here? We just need to infer these as classes.
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.
Let's see if we can put the inference function in brain.
@PCManticore feel free to take over if you want to have it merged reasonable quick. I'll be quite busy next week. |
Abandoned. |
Closes #1290