Skip to content

Commit 5daefdd

Browse files
chore: add missing docstrings
1 parent f10f373 commit 5daefdd

7 files changed

+32
-0
lines changed

src/onebusaway/types/arrival_and_departure_list_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121

2222
class ArrivalAndDepartureListResponseDataEntryArrivalsAndDepartureTripStatusLastKnownLocation(BaseModel):
23+
"""Last known location of the transit vehicle."""
24+
2325
lat: Optional[float] = None
2426
"""Latitude of the last known location of the transit vehicle."""
2527

@@ -28,6 +30,8 @@ class ArrivalAndDepartureListResponseDataEntryArrivalsAndDepartureTripStatusLast
2830

2931

3032
class ArrivalAndDepartureListResponseDataEntryArrivalsAndDepartureTripStatusPosition(BaseModel):
33+
"""Current position of the transit vehicle."""
34+
3135
lat: Optional[float] = None
3236
"""Latitude of the current position of the transit vehicle."""
3337

@@ -36,6 +40,8 @@ class ArrivalAndDepartureListResponseDataEntryArrivalsAndDepartureTripStatusPosi
3640

3741

3842
class ArrivalAndDepartureListResponseDataEntryArrivalsAndDepartureTripStatus(BaseModel):
43+
"""Trip-specific status for the arriving transit vehicle."""
44+
3945
active_trip_id: str = FieldInfo(alias="activeTripId")
4046
"""Trip ID of the trip the vehicle is actively serving."""
4147

src/onebusaway/types/arrival_and_departure_retrieve_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020

2121
class ArrivalAndDepartureRetrieveResponseDataEntryTripStatusLastKnownLocation(BaseModel):
22+
"""Last known location of the transit vehicle."""
23+
2224
lat: Optional[float] = None
2325
"""Latitude of the last known location of the transit vehicle."""
2426

@@ -27,6 +29,8 @@ class ArrivalAndDepartureRetrieveResponseDataEntryTripStatusLastKnownLocation(Ba
2729

2830

2931
class ArrivalAndDepartureRetrieveResponseDataEntryTripStatusPosition(BaseModel):
32+
"""Current position of the transit vehicle."""
33+
3034
lat: Optional[float] = None
3135
"""Latitude of the current position of the transit vehicle."""
3236

@@ -35,6 +39,8 @@ class ArrivalAndDepartureRetrieveResponseDataEntryTripStatusPosition(BaseModel):
3539

3640

3741
class ArrivalAndDepartureRetrieveResponseDataEntryTripStatus(BaseModel):
42+
"""Trip-specific status for the arriving transit vehicle."""
43+
3844
active_trip_id: str = FieldInfo(alias="activeTripId")
3945
"""Trip ID of the trip the vehicle is actively serving."""
4046

src/onebusaway/types/trip_detail_retrieve_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class TripDetailRetrieveResponseDataEntrySchedule(BaseModel):
4747

4848

4949
class TripDetailRetrieveResponseDataEntryStatusLastKnownLocation(BaseModel):
50+
"""Last known location of the transit vehicle."""
51+
5052
lat: Optional[float] = None
5153
"""Latitude of the last known location of the transit vehicle."""
5254

@@ -55,6 +57,8 @@ class TripDetailRetrieveResponseDataEntryStatusLastKnownLocation(BaseModel):
5557

5658

5759
class TripDetailRetrieveResponseDataEntryStatusPosition(BaseModel):
60+
"""Current position of the transit vehicle."""
61+
5862
lat: Optional[float] = None
5963
"""Latitude of the current position of the transit vehicle."""
6064

src/onebusaway/types/trip_for_vehicle_retrieve_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class TripForVehicleRetrieveResponseDataEntrySchedule(BaseModel):
4747

4848

4949
class TripForVehicleRetrieveResponseDataEntryStatusLastKnownLocation(BaseModel):
50+
"""Last known location of the transit vehicle."""
51+
5052
lat: Optional[float] = None
5153
"""Latitude of the last known location of the transit vehicle."""
5254

@@ -55,6 +57,8 @@ class TripForVehicleRetrieveResponseDataEntryStatusLastKnownLocation(BaseModel):
5557

5658

5759
class TripForVehicleRetrieveResponseDataEntryStatusPosition(BaseModel):
60+
"""Current position of the transit vehicle."""
61+
5862
lat: Optional[float] = None
5963
"""Latitude of the current position of the transit vehicle."""
6064

src/onebusaway/types/trips_for_location_list_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class TripsForLocationListResponseDataListSchedule(BaseModel):
4747

4848

4949
class TripsForLocationListResponseDataListStatusLastKnownLocation(BaseModel):
50+
"""Last known location of the transit vehicle."""
51+
5052
lat: Optional[float] = None
5153
"""Latitude of the last known location of the transit vehicle."""
5254

@@ -55,6 +57,8 @@ class TripsForLocationListResponseDataListStatusLastKnownLocation(BaseModel):
5557

5658

5759
class TripsForLocationListResponseDataListStatusPosition(BaseModel):
60+
"""Current position of the transit vehicle."""
61+
5862
lat: Optional[float] = None
5963
"""Latitude of the current position of the transit vehicle."""
6064

src/onebusaway/types/trips_for_route_list_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class TripsForRouteListResponseDataListSchedule(BaseModel):
4747

4848

4949
class TripsForRouteListResponseDataListStatusLastKnownLocation(BaseModel):
50+
"""Last known location of the transit vehicle."""
51+
5052
lat: Optional[float] = None
5153
"""Latitude of the last known location of the transit vehicle."""
5254

@@ -55,6 +57,8 @@ class TripsForRouteListResponseDataListStatusLastKnownLocation(BaseModel):
5557

5658

5759
class TripsForRouteListResponseDataListStatusPosition(BaseModel):
60+
"""Current position of the transit vehicle."""
61+
5862
lat: Optional[float] = None
5963
"""Latitude of the current position of the transit vehicle."""
6064

src/onebusaway/types/vehicles_for_agency_list_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class VehiclesForAgencyListResponseDataListLocation(BaseModel):
2626

2727

2828
class VehiclesForAgencyListResponseDataListTripStatusLastKnownLocation(BaseModel):
29+
"""Last known location of the transit vehicle."""
30+
2931
lat: Optional[float] = None
3032
"""Latitude of the last known location of the transit vehicle."""
3133

@@ -34,6 +36,8 @@ class VehiclesForAgencyListResponseDataListTripStatusLastKnownLocation(BaseModel
3436

3537

3638
class VehiclesForAgencyListResponseDataListTripStatusPosition(BaseModel):
39+
"""Current position of the transit vehicle."""
40+
3741
lat: Optional[float] = None
3842
"""Latitude of the current position of the transit vehicle."""
3943

0 commit comments

Comments
 (0)