type_has_annotation
Returns True if the type_ has been annotated with annotation.
Signature:
def type_has_annotation(type_: object, annotation: Type) -> bool: ...Parameters:
-
type_:- Type
-
object
-
annotation:- Type
-
Type
Returns True if the type_ has been annotated with annotation.
def type_has_annotation(type_: object, annotation: Type) -> bool: ... type_:
object annotation:
Type