Collaborative session implementation, 1
This commit is contained in:
12
synctoy/state_machine.py
Normal file
12
synctoy/state_machine.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from typing import Protocol
|
||||
|
||||
|
||||
class StateMachine(Protocol):
|
||||
def equivalent_to(self, other: "StateMachine") -> bool:
|
||||
raise NotImplementedError
|
||||
|
||||
def can_transition_from(self, old: "StateMachine") -> bool:
|
||||
raise NotImplementedError
|
||||
|
||||
def can_transition_to(self, new: "StateMachine") -> bool:
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user