morpheus.utils.type_utils
Functions
|
Returns the fully qualified name of a class. |
|
Returns the greatest common ancestor of the classes in the class list |
Determines a good label to use for a type. |
|
- 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]]