raillabel.json_format.boolean_attribute module

class raillabel.json_format.boolean_attribute.JSONBooleanAttribute(*, name: str, val: bool)

Bases: _JSONFormatBase

A boolean 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: bool

The boolean value.