class documentation

class TypeMachine(Generic[InputProtocol, Core]): (source)

View In Hierarchy

A TypeMachine is a factory for instances of InputProtocol.

Method __call__ Construct an instance of InputProtocol from an instance of the Core protocol.
Method asDigraph Undocumented
Class Variable __automat_automaton__ Undocumented
Class Variable __automat_type__ Undocumented
@overload
def __call__(self, core: Core) -> InputProtocol:
@overload
def __call__(self, core: Core, state: TypedState[InputProtocol, Core]) -> InputProtocol:
@overload
def __call__(self, core: Core, state: TypedDataState[InputProtocol, Core, OtherData, ...], dataFactory: Callable[[InputProtocol, Core], OtherData]) -> InputProtocol:
(source)

Construct an instance of InputProtocol from an instance of the Core protocol.

def asDigraph(self) -> Digraph: (source)

Undocumented

__automat_automaton__: Automaton[TypedState[InputProtocol, Core] | TypedDataState[InputProtocol, Core, Any, ...], str, SomeOutput] = (source)

Undocumented

__automat_type__: type[InputImplementer[InputProtocol, Core]] = (source)

Undocumented