Crash when defining __post_init__
outside the base-level of a class
#16371
Labels
__post_init__
outside the base-level of a class
#16371
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: