Apply convert_handlers_to_fns for substates (#846)

This commit is contained in:
Seonghwan Choi 2023-04-20 03:45:23 +09:00 committed by GitHub
parent 945ac53dd0
commit 5db622c7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,8 @@ class State(Base, ABC):
"""
for name, event_handler in cls.event_handlers.items():
setattr(cls, name, event_handler.fn)
for substate in cls.get_substates():
substate.convert_handlers_to_fns()
@classmethod
def set_handlers(cls):