-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
internal error using Enum and __new__ #1081
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
Labels
bug
mypy got something wrong
Comments
Thanks for the report! We've seen a few more of these. Hopefully we'll be
able to nail this, but most of mypy's active developers are about to go on
holiday break so it may be January. Sorry!
|
I've removed a few red herrings from the repro; here's the smallest one I could find:
Some things I tried that went too far:
The class's |
I think I've got a fix -- let me know if that solves your real-world case (I've already verified it solves the repro given here). |
Yeah, that fixes it. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Making a list of types looks weird, but this was originally used to construct a
typing.NamedTuple
.produces:
The text was updated successfully, but these errors were encountered: