-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Type of enum value being incorrectly inferred #744
Comments
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: this content is roughly equivalent to that of an still unanswered question I posted at SO.
Consider the program above an a call to
infer()
on expressionWhatever.Foo
.Current behavior
I get a (proxied)
ClassDef
for aFoo
"type".Expected behavior
I'd expect a (proxied)
ClassDef
forWhatever
.This would be according to the language specification, that says that the type of an enumeration member is the enumeration it belongs to.
astroid version: 2.3.3
The text was updated successfully, but these errors were encountered: