is_classvar
Returns True if the annotation is a ClassVar.
Signature:
def is_classvar(cls: type, annotation: ForwardRef | str) -> bool: ...Parameters:
-
annotation:- Type
-
ForwardRef | str
Returns True if the annotation is a ClassVar.
def is_classvar(cls: type, annotation: ForwardRef | str) -> bool: ... annotation:
ForwardRef | str