Skip to content

Commit

Permalink
docstring vehicle info
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 4cdbb27 commit 1c11c8f
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 @@ -52,13 +52,13 @@ class LiveboardResponse(ApiResponse):

@dataclass
class VehicleInfo(DataClassORJSONMixin):
"""Represents information about a specific vehicle, including name and location."""
name: str # Name of the vehicle
location_x: float = field(metadata=field_options(alias="locationX")) # Longitude of the vehicle
location_y: float = field(metadata=field_options(alias="locationY")) # Latitude of the vehicle
short_name: str = field(metadata=field_options(alias="shortname")) # Shortened name of the vehicle
at_id: str = field(metadata=field_options(alias="@id")) # ID of the vehicle


@dataclass
class Stops(DataClassORJSONMixin):
"""Holds the number of stops and a list of detailed stop information."""
Expand Down

0 comments on commit 1c11c8f

Please sign in to comment.