is_generic Returns True if the annotation is or extends a generic. Signature: def is_generic(annotation: type) -> bool: ... Parameters: annotation: Type type