Skip to content

Commit

Permalink
docstring composition segments
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
tjorim and coderabbitai[bot] authored Jan 6, 2025
1 parent 11442a8 commit 89a009e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrail/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89a009e

Please sign in to comment.