-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Crash when defining __post_init__
outside the base-level of a class
#16371
Labels
Comments
This reproduces with mypy 1.6.1, but is already fixed on the mypy |
Thanks for the quick response! Apologies for missing the previous issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
Defining a function named
__post_init__
anywhere that isn't a class base-level crashes mypy.Traceback
To Reproduce
Top-level:
Nested:
The following does not cause mypy to crash:
Nor does
Your Environment
The text was updated successfully, but these errors were encountered: