add generic name

This commit is contained in:
Brandon Hancock
2024-10-02 16:12:57 -04:00
parent f775101b18
commit 88e854d878

View File

@@ -152,6 +152,7 @@ class Flow(Generic[T], metaclass=FlowMeta):
class _FlowGeneric(cls):
_initial_state_T: Type[T] = item
_FlowGeneric.__name__ = f"{cls.__name__}[{item.__name__}]"
return _FlowGeneric
def __init__(self) -> None: