enum_tools.utils
General utility functions.
Classes:
|
Functions:
|
Returns the object type of the enum’s members. |
|
|
|
|
|
-
protocol
HasMRO[source] Bases:
Protocoltyping.Protocolfor classes that have a method resolution order magic method (__mro__).This protocol is runtime checkable.
Classes that implement this protocol must have the following methods / attributes:
-
get_base_object(enum)[source] Returns the object type of the enum’s members.
If the members are of indeterminate type then the
objectclass is returned.