pytoolbox.states module¶
- class pytoolbox.states.StateEnumMergeMetaclass(name, bases, cls_dict)[source]¶
Bases:
StateEnumMetaclass
- class pytoolbox.states.StateEnum[source]¶
Bases:
object
- classmethod get_transit_from(state, auto_inverse=False)[source]¶
Return a set with the states having a transition to given state.
If auto_inverse is set to True then a tuple is returned containing the smallest set from:
(States allowed to transit to given state, True)
(States not allowed to transit to given state, False)