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
classTD(TypedDict):
v: ClassVar[int] # all => finef: Final[int] # pyright => error: "f" is declared Final, but value is not assigned# mypy => error: Final can be only used as an outermost qualifier in a variable annotation# pyre => fine# pytype => finea: Final[int] =42# pyright => error: TypedDict classes can contain only type annotations# mypy => error: Right hand side values are not supported in TypedDict# pyre => fine# pytype => fine
Reference implementation: None.
TC Sign-off
Carl
Eric
Jelle
Jukka
Rebecca
The text was updated successfully, but these errors were encountered:
ClassVar
andFinal
withinTypedDict
bodyTypedDict
to have aClassVar
field?As discussed in the thread linked above, major type checkers currently don't consider such a
ClassVar
an error.As for
Final
, Pyright and Mypy do reports it, but their messages are unclear; Pytype and Pyre, on the other hand, ignores such items completely:(playgrounds: Pyright, Mypy, Pyre)
Reference implementation: None.
TC Sign-off
The text was updated successfully, but these errors were encountered: