Disallow use of ClassVar
for TypedDict and NamedTuple attributes
#9526
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
spec compliance
The runtime disallows the use of the
ClassVar
qualifier when defining a TypedDict and NamedTuple.This doesn't strike me as a significant source of confusion or bugs, but it has been proposed to amend the typing spec to mandate that type checkers report this condition.
The text was updated successfully, but these errors were encountered: