is_type_var

Returns True if the annotation is a TypeVar.

Signature:

def is_type_var(annotation: Type) -> bool:
...

Parameters:

  1. annotation:

    Type
    Type