skytracker.models.state.StateTransponder#

class skytracker.models.state.StateTransponder(*, squawk: int | None, squawk_time: datetime | None)#

Bases: BaseModel

State transponder data

Properties

model_config

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

squawk

squawk code (can be None)

squawk_time

squawk update time

Methods

__init__(**data: Any) None#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

model_config: ClassVar[ConfigDict] = {}#

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

squawk: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Squawk code')]#

squawk code (can be None)

Type:

int | None

squawk_time: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Squawk code update time')]#

squawk update time

Type:

datetime | None