Skip to main content

strip_annotation_name

FunctionSource

v_1: str = strip_annotation_name(anno: Any)

Convert an annotation to string, and strip its name by removing the module prefix.

Arguments

Requires

NameTypeRequired
Description
annoAnyAn annotation object or string. The string should be converted from the annotation object.

Returns

NameType
Description
v_1strThe revised string version of the giving annotation.