raito.plugins.scenes.data module¶
- class raito.plugins.scenes.data.SceneData[исходный код]¶
Базовые классы:
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].