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
No error. I ran into this writing stubs for real code from here that does use nested namedtuples at runtime. It also type checks fine in pyright. Minor though as type: ignore seems to work fine for it in typeshed.
Your Environment
Latest mypy version 1.2. Default flags/configuration is enough.
The text was updated successfully, but these errors were encountered:
Bug Report
produces an error message of,
Invalid statement in NamedTuple definition; expected "field_name: field_type [= default]"
Expected Behavior
No error. I ran into this writing stubs for real code from here that does use nested namedtuples at runtime. It also type checks fine in pyright. Minor though as type: ignore seems to work fine for it in typeshed.
Your Environment
Latest mypy version 1.2. Default flags/configuration is enough.
The text was updated successfully, but these errors were encountered: