diff --git a/pyrail/models.py b/pyrail/models.py index f808c17..c59c3d2 100644 --- a/pyrail/models.py +++ b/pyrail/models.py @@ -88,10 +88,10 @@ class Segment(DataClassORJSONMixin): @dataclass class CompositionSegments(DataClassORJSONMixin): + """Represents multiple journey segments, each having its own composition details.""" number: int # Number of segments segment: List[Segment] = field(metadata=field_options(alias="segment")) # List of segments - @dataclass class CompositionResponse(ApiResponse): composition: CompositionSegments # Composition details