alysivji / finite-state-machine

Lightweight, decorator-based Python implementation of a Finite State Machine
MIT License
111 stars 12 forks source link

Objects inheriting from allowed_types can be used as states #24

Closed mgetka closed 3 years ago

mgetka commented 3 years ago

This PR allows objects inheriting from allowed_types to be used as states. Especially, this change allows to use enum.IntEnum instances as states.