raito.plugins.scenes.data moduleΒΆ
- class raito.plugins.scenes.data.SceneData[source]ΒΆ
Bases:
BaseModelTyped, JSON-serialisable draft carried between scene steps.
The draft is mutable inside a handler (
scene.data.field = ...) and is snapshotted into FSM storage on every navigation. Give every field a default: a scene starts from an empty draft.validate_assignmentturns a typo likescene.data.usrname = ...into an immediate error instead of a silent loss.- model_config = {'extra': 'forbid', 'validate_assignment': True}ΒΆ
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].