is_classvar

Returns True if the annotation is a ClassVar.

Signature:

def is_classvar(cls: type, annotation: ForwardRef | str) -> bool:
...

Parameters:

  1. annotation:

    Type
    ForwardRef | str