Improved typing of initial context
This commit is contained in:
@@ -50,7 +50,7 @@ class Transition(Generic[TransitionInput]):
|
||||
|
||||
|
||||
class Machine(Generic[Input]):
|
||||
def __init__(self, initial_context=None) -> None:
|
||||
def __init__(self, initial_context: object = None) -> None:
|
||||
if initial_context is None:
|
||||
initial_context = {}
|
||||
self.__start_state_hash: Optional[int] = None
|
||||
|
||||
Reference in New Issue
Block a user