type_has_annotation

Returns True if the type_ has been annotated with annotation.

Signature:

def type_has_annotation(type_: object, annotation: Type) -> bool:
...

Parameters:

  1. type_:

    Type
    object
  2. annotation:

    Type
    Type