File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ def __init_subclass__(cls) -> None:
8181 value .name = ':' .join ((cls .__name__ , name ))
8282 value .group = cls
8383
84+ @property
85+ def state_list (self ):
86+ return [value for name , value in self .__dict__ .items ()
87+ if not name .startswith ('__' ) and not callable (value ) and isinstance (value , State )]
88+
8489
8590class SkipHandler :
8691 """
Original file line number Diff line number Diff line change @@ -191,7 +191,12 @@ def __init_subclass__(cls) -> None:
191191 value .name = ':' .join ((cls .__name__ , name ))
192192 value .group = cls
193193
194-
194+ @property
195+ def state_list (self ):
196+ return [value for name , value in self .__dict__ .items ()
197+ if not name .startswith ('__' ) and not callable (value ) and isinstance (value , State )]
198+
199+
195200class BaseMiddleware :
196201 """
197202 Base class for middleware.
You can’t perform that action at this time.
0 commit comments