You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.py:9: error: INTERNAL ERROR -- Please try using mypy master on Github:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
Please report a bug at https://github.com/python/mypy/issues
version: 0.902
Traceback (most recent call last):
File "mypy/semanal.py", line 4872, in accept
File "mypy/nodes.py", line 687, in accept
File "mypy/semanal.py", line 577, in visit_func_def
File "mypy/semanal.py", line 609, in analyze_func_def
File "mypy/semanal.py", line 4583, in defer
AssertionError: Must not defer during final iteration
test.py:9: : note: use --pdb to drop into pdb
But mypy returns "sucess" with code 0 if I swap class _S and S:
Crash Report / Traceback / To Reproduce
I try to use NamedTuple and Generic such as the following code:
In this case mypy raises an internal error:
But mypy returns "sucess" with code 0 if I swap
class _S
andS
:Your Environment
mypy --show-traceback test.py
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: