bpod_core.fsm.States

class bpod_core.fsm.States

Bases: +$'))]), WrapValidator], State]

A collection of states.

model_config: ClassVar[ConfigDict] = {'title': 'States'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property transition_targets: set[Annotated[str, FieldInfo(annotation=NoneType, required=True, title='State Name', description='The name of the state', metadata=[MinLen(min_length=1), _PydanticGeneralMetadata(pattern=re.compile('^(?!>)(?!exit$)(?!back$).+$'))]), WrapValidator(func=_validate_state_name, json_schema_input_type=PydanticUndefined)] | Annotated[str, FieldInfo(annotation=NoneType, required=True, title='State Machine Operator', description='A state machine operator', examples=['>exit', '>back'], metadata=[MinLen(min_length=2), _PydanticGeneralMetadata(pattern=re.compile('^>.+$'))]), WrapValidator(func=_validate_operator, json_schema_input_type=PydanticUndefined)]]

A set of all transition targets.