morpheus.utils.type_utils

(Latest Version)

Functions

get_full_qualname(klass)

Returns the fully qualified name of a class.

greatest_ancestor(*cls_list)

Returns the greatest common ancestor of the classes in the class list

pretty_print_type_name(t)

Determines a good label to use for a type.

unpack_tuple()

unpack_union()

get_full_qualname(klass)[source]

Returns the fully qualified name of a class.

greatest_ancestor(*cls_list)[source]

Returns the greatest common ancestor of the classes in the class list

pretty_print_type_name(t)[source]

Determines a good label to use for a type. Keeps the strings shorter.

unpack_tuple(cls_1: Type[morpheus.utils.type_utils.T])Tuple[Type[morpheus.utils.type_utils.T]][source]
unpack_tuple(cls_1: Type[morpheus.utils.type_utils.T1], cls_2: Type[morpheus.utils.type_utils.T2])Tuple[Type[morpheus.utils.type_utils.T1], Type[morpheus.utils.type_utils.T2]]
unpack_tuple(cls_1: Type[morpheus.utils.type_utils.T1], cls_2: Type[morpheus.utils.type_utils.T2], cls_3: Type[morpheus.utils.type_utils.T3])Tuple[Type[morpheus.utils.type_utils.T1], Type[morpheus.utils.type_utils.T2], Type[morpheus.utils.type_utils.T3]]

unpack_union(cls_1: Type[morpheus.utils.type_utils.T])Type[morpheus.utils.type_utils.T][source]
unpack_union(cls_1: Type[morpheus.utils.type_utils.T1], cls_2: Type[morpheus.utils.type_utils.T2])Union[Type[morpheus.utils.type_utils.T1], Type[morpheus.utils.type_utils.T2]]
unpack_union(cls_1: Type[morpheus.utils.type_utils.T1], cls_2: Type[morpheus.utils.type_utils.T2], cls_3: Type[morpheus.utils.type_utils.T3])Union[Type[morpheus.utils.type_utils.T1], Type[morpheus.utils.type_utils.T2], Type[morpheus.utils.type_utils.T3]]

© Copyright 2023, NVIDIA. Last updated on Apr 11, 2023.