Skip to content

Commit

Permalink
docstring connection
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 1c11c8f commit 829a7f1
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 @@ -100,6 +100,7 @@ class CompositionResponse(ApiResponse):

@dataclass
class Connection(DataClassORJSONMixin):
"""Represents a single train connection, including scheduling and delay details."""
departure: Station # Departure station information
arrival: Station # Arrival station information
departure_time: str = field(metadata=field_options(alias="departureTime")) # Departure time in ISO format
Expand All @@ -113,7 +114,6 @@ class Connection(DataClassORJSONMixin):
metadata=field_options(alias="arrivalDelay"), default=None
) # Delay at arrival in seconds


@dataclass
class ConnectionsResponse(ApiResponse):
"""Holds a list of train connections returned by the connections endpoint."""
Expand Down

0 comments on commit 829a7f1

Please sign in to comment.