raillabel.json_format.text_attribute module

class raillabel.json_format.text_attribute.JSONTextAttribute(*, name: str, val: str)

Bases: _JSONFormatBase

A text attribute.

_abc_impl = <_abc._abc_data object>
model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

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

name: str

Friendly identifier describing the attribute. Used to track the attribute throughout annotations and frames.

val: str

The text value.