onebusaway 1.17.1__py3-none-any.whl → 1.17.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. onebusaway/__init__.py +3 -1
  2. onebusaway/_base_client.py +9 -9
  3. onebusaway/_client.py +8 -8
  4. onebusaway/_models.py +10 -4
  5. onebusaway/_qs.py +7 -7
  6. onebusaway/_types.py +18 -11
  7. onebusaway/_utils/_transform.py +2 -2
  8. onebusaway/_utils/_utils.py +4 -4
  9. onebusaway/_version.py +1 -1
  10. onebusaway/resources/agencies_with_coverage.py +3 -3
  11. onebusaway/resources/agency.py +3 -3
  12. onebusaway/resources/arrival_and_departure.py +17 -17
  13. onebusaway/resources/block.py +3 -3
  14. onebusaway/resources/config.py +3 -3
  15. onebusaway/resources/current_time.py +3 -3
  16. onebusaway/resources/report_problem_with_stop.py +13 -13
  17. onebusaway/resources/report_problem_with_trip.py +23 -23
  18. onebusaway/resources/route.py +3 -3
  19. onebusaway/resources/route_ids_for_agency.py +3 -3
  20. onebusaway/resources/routes_for_agency.py +3 -3
  21. onebusaway/resources/routes_for_location.py +11 -11
  22. onebusaway/resources/schedule_for_route.py +5 -5
  23. onebusaway/resources/schedule_for_stop.py +5 -5
  24. onebusaway/resources/search_for_route.py +5 -5
  25. onebusaway/resources/search_for_stop.py +5 -5
  26. onebusaway/resources/shape.py +3 -3
  27. onebusaway/resources/stop.py +3 -3
  28. onebusaway/resources/stop_ids_for_agency.py +3 -3
  29. onebusaway/resources/stops_for_agency.py +3 -3
  30. onebusaway/resources/stops_for_location.py +11 -11
  31. onebusaway/resources/stops_for_route.py +7 -7
  32. onebusaway/resources/trip.py +3 -3
  33. onebusaway/resources/trip_details.py +13 -13
  34. onebusaway/resources/trip_for_vehicle.py +11 -11
  35. onebusaway/resources/trips_for_location.py +9 -9
  36. onebusaway/resources/trips_for_route.py +9 -9
  37. onebusaway/resources/vehicles_for_agency.py +5 -5
  38. {onebusaway-1.17.1.dist-info → onebusaway-1.17.3.dist-info}/METADATA +1 -1
  39. {onebusaway-1.17.1.dist-info → onebusaway-1.17.3.dist-info}/RECORD +41 -41
  40. {onebusaway-1.17.1.dist-info → onebusaway-1.17.3.dist-info}/WHEEL +0 -0
  41. {onebusaway-1.17.1.dist-info → onebusaway-1.17.3.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ from typing_extensions import Literal
7
7
  import httpx
8
8
 
9
9
  from ..types import report_problem_with_trip_retrieve_params
10
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11
11
  from .._utils import maybe_transform, async_maybe_transform
12
12
  from .._compat import cached_property
13
13
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -55,22 +55,22 @@ class ReportProblemWithTripResource(SyncAPIResource):
55
55
  "vehicle_does_not_stop_here",
56
56
  "other",
57
57
  ]
58
- | NotGiven = NOT_GIVEN,
59
- service_date: int | NotGiven = NOT_GIVEN,
60
- stop_id: str | NotGiven = NOT_GIVEN,
61
- user_comment: str | NotGiven = NOT_GIVEN,
62
- user_lat: float | NotGiven = NOT_GIVEN,
63
- user_location_accuracy: float | NotGiven = NOT_GIVEN,
64
- user_lon: float | NotGiven = NOT_GIVEN,
65
- user_on_vehicle: bool | NotGiven = NOT_GIVEN,
66
- user_vehicle_number: str | NotGiven = NOT_GIVEN,
67
- vehicle_id: str | NotGiven = NOT_GIVEN,
58
+ | Omit = omit,
59
+ service_date: int | Omit = omit,
60
+ stop_id: str | Omit = omit,
61
+ user_comment: str | Omit = omit,
62
+ user_lat: float | Omit = omit,
63
+ user_location_accuracy: float | Omit = omit,
64
+ user_lon: float | Omit = omit,
65
+ user_on_vehicle: bool | Omit = omit,
66
+ user_vehicle_number: str | Omit = omit,
67
+ vehicle_id: str | Omit = omit,
68
68
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
69
  # The extra values given here take precedence over values defined on the client or passed to this method.
70
70
  extra_headers: Headers | None = None,
71
71
  extra_query: Query | None = None,
72
72
  extra_body: Body | None = None,
73
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
73
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
74
74
  ) -> ResponseWrapper:
75
75
  """
76
76
  Submit a user-generated problem report for a particular trip.
@@ -165,22 +165,22 @@ class AsyncReportProblemWithTripResource(AsyncAPIResource):
165
165
  "vehicle_does_not_stop_here",
166
166
  "other",
167
167
  ]
168
- | NotGiven = NOT_GIVEN,
169
- service_date: int | NotGiven = NOT_GIVEN,
170
- stop_id: str | NotGiven = NOT_GIVEN,
171
- user_comment: str | NotGiven = NOT_GIVEN,
172
- user_lat: float | NotGiven = NOT_GIVEN,
173
- user_location_accuracy: float | NotGiven = NOT_GIVEN,
174
- user_lon: float | NotGiven = NOT_GIVEN,
175
- user_on_vehicle: bool | NotGiven = NOT_GIVEN,
176
- user_vehicle_number: str | NotGiven = NOT_GIVEN,
177
- vehicle_id: str | NotGiven = NOT_GIVEN,
168
+ | Omit = omit,
169
+ service_date: int | Omit = omit,
170
+ stop_id: str | Omit = omit,
171
+ user_comment: str | Omit = omit,
172
+ user_lat: float | Omit = omit,
173
+ user_location_accuracy: float | Omit = omit,
174
+ user_lon: float | Omit = omit,
175
+ user_on_vehicle: bool | Omit = omit,
176
+ user_vehicle_number: str | Omit = omit,
177
+ vehicle_id: str | Omit = omit,
178
178
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
179
179
  # The extra values given here take precedence over values defined on the client or passed to this method.
180
180
  extra_headers: Headers | None = None,
181
181
  extra_query: Query | None = None,
182
182
  extra_body: Body | None = None,
183
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
183
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
184
184
  ) -> ResponseWrapper:
185
185
  """
186
186
  Submit a user-generated problem report for a particular trip.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class RouteResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> RouteRetrieveResponse:
53
53
  """
54
54
  Retrieve information for a specific route identified by its unique ID.
@@ -102,7 +102,7 @@ class AsyncRouteResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> RouteRetrieveResponse:
107
107
  """
108
108
  Retrieve information for a specific route identified by its unique ID.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class RouteIDsForAgencyResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> RouteIDsForAgencyListResponse:
53
53
  """
54
54
  Get route IDs for a specific agency
@@ -102,7 +102,7 @@ class AsyncRouteIDsForAgencyResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> RouteIDsForAgencyListResponse:
107
107
  """
108
108
  Get route IDs for a specific agency
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class RoutesForAgencyResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> RoutesForAgencyListResponse:
53
53
  """
54
54
  Retrieve the list of all routes for a particular agency by id
@@ -102,7 +102,7 @@ class AsyncRoutesForAgencyResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> RoutesForAgencyListResponse:
107
107
  """
108
108
  Retrieve the list of all routes for a particular agency by id
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ..types import routes_for_location_list_params
8
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from .._utils import maybe_transform, async_maybe_transform
10
10
  from .._compat import cached_property
11
11
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -46,16 +46,16 @@ class RoutesForLocationResource(SyncAPIResource):
46
46
  *,
47
47
  lat: float,
48
48
  lon: float,
49
- lat_span: float | NotGiven = NOT_GIVEN,
50
- lon_span: float | NotGiven = NOT_GIVEN,
51
- query: str | NotGiven = NOT_GIVEN,
52
- radius: float | NotGiven = NOT_GIVEN,
49
+ lat_span: float | Omit = omit,
50
+ lon_span: float | Omit = omit,
51
+ query: str | Omit = omit,
52
+ radius: float | Omit = omit,
53
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
55
55
  extra_headers: Headers | None = None,
56
56
  extra_query: Query | None = None,
57
57
  extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
59
  ) -> RoutesForLocationListResponse:
60
60
  """
61
61
  routes-for-location
@@ -117,16 +117,16 @@ class AsyncRoutesForLocationResource(AsyncAPIResource):
117
117
  *,
118
118
  lat: float,
119
119
  lon: float,
120
- lat_span: float | NotGiven = NOT_GIVEN,
121
- lon_span: float | NotGiven = NOT_GIVEN,
122
- query: str | NotGiven = NOT_GIVEN,
123
- radius: float | NotGiven = NOT_GIVEN,
120
+ lat_span: float | Omit = omit,
121
+ lon_span: float | Omit = omit,
122
+ query: str | Omit = omit,
123
+ radius: float | Omit = omit,
124
124
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
125
125
  # The extra values given here take precedence over values defined on the client or passed to this method.
126
126
  extra_headers: Headers | None = None,
127
127
  extra_query: Query | None = None,
128
128
  extra_body: Body | None = None,
129
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
129
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
130
130
  ) -> RoutesForLocationListResponse:
131
131
  """
132
132
  routes-for-location
@@ -8,7 +8,7 @@ from datetime import date
8
8
  import httpx
9
9
 
10
10
  from ..types import schedule_for_route_retrieve_params
11
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from .._utils import maybe_transform, async_maybe_transform
13
13
  from .._compat import cached_property
14
14
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -48,13 +48,13 @@ class ScheduleForRouteResource(SyncAPIResource):
48
48
  self,
49
49
  route_id: str,
50
50
  *,
51
- date: Union[str, date] | NotGiven = NOT_GIVEN,
51
+ date: Union[str, date] | Omit = omit,
52
52
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
53
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
54
  extra_headers: Headers | None = None,
55
55
  extra_query: Query | None = None,
56
56
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
58
  ) -> ScheduleForRouteRetrieveResponse:
59
59
  """
60
60
  Retrieve the full schedule for a route on a particular day
@@ -112,13 +112,13 @@ class AsyncScheduleForRouteResource(AsyncAPIResource):
112
112
  self,
113
113
  route_id: str,
114
114
  *,
115
- date: Union[str, date] | NotGiven = NOT_GIVEN,
115
+ date: Union[str, date] | Omit = omit,
116
116
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117
117
  # The extra values given here take precedence over values defined on the client or passed to this method.
118
118
  extra_headers: Headers | None = None,
119
119
  extra_query: Query | None = None,
120
120
  extra_body: Body | None = None,
121
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
122
122
  ) -> ScheduleForRouteRetrieveResponse:
123
123
  """
124
124
  Retrieve the full schedule for a route on a particular day
@@ -8,7 +8,7 @@ from datetime import date
8
8
  import httpx
9
9
 
10
10
  from ..types import schedule_for_stop_retrieve_params
11
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
11
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
12
12
  from .._utils import maybe_transform, async_maybe_transform
13
13
  from .._compat import cached_property
14
14
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -48,13 +48,13 @@ class ScheduleForStopResource(SyncAPIResource):
48
48
  self,
49
49
  stop_id: str,
50
50
  *,
51
- date: Union[str, date] | NotGiven = NOT_GIVEN,
51
+ date: Union[str, date] | Omit = omit,
52
52
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
53
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
54
  extra_headers: Headers | None = None,
55
55
  extra_query: Query | None = None,
56
56
  extra_body: Body | None = None,
57
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
58
58
  ) -> ScheduleForStopRetrieveResponse:
59
59
  """
60
60
  Get schedule for a specific stop
@@ -110,13 +110,13 @@ class AsyncScheduleForStopResource(AsyncAPIResource):
110
110
  self,
111
111
  stop_id: str,
112
112
  *,
113
- date: Union[str, date] | NotGiven = NOT_GIVEN,
113
+ date: Union[str, date] | Omit = omit,
114
114
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
115
115
  # The extra values given here take precedence over values defined on the client or passed to this method.
116
116
  extra_headers: Headers | None = None,
117
117
  extra_query: Query | None = None,
118
118
  extra_body: Body | None = None,
119
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
119
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
120
120
  ) -> ScheduleForStopRetrieveResponse:
121
121
  """
122
122
  Get schedule for a specific stop
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ..types import search_for_route_list_params
8
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from .._utils import maybe_transform, async_maybe_transform
10
10
  from .._compat import cached_property
11
11
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -45,13 +45,13 @@ class SearchForRouteResource(SyncAPIResource):
45
45
  self,
46
46
  *,
47
47
  input: str,
48
- max_count: int | NotGiven = NOT_GIVEN,
48
+ max_count: int | Omit = omit,
49
49
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
50
  # The extra values given here take precedence over values defined on the client or passed to this method.
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> SearchForRouteListResponse:
56
56
  """
57
57
  Search for a route based on its name.
@@ -112,13 +112,13 @@ class AsyncSearchForRouteResource(AsyncAPIResource):
112
112
  self,
113
113
  *,
114
114
  input: str,
115
- max_count: int | NotGiven = NOT_GIVEN,
115
+ max_count: int | Omit = omit,
116
116
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117
117
  # The extra values given here take precedence over values defined on the client or passed to this method.
118
118
  extra_headers: Headers | None = None,
119
119
  extra_query: Query | None = None,
120
120
  extra_body: Body | None = None,
121
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
122
122
  ) -> SearchForRouteListResponse:
123
123
  """
124
124
  Search for a route based on its name.
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ..types import search_for_stop_list_params
8
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from .._utils import maybe_transform, async_maybe_transform
10
10
  from .._compat import cached_property
11
11
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -45,13 +45,13 @@ class SearchForStopResource(SyncAPIResource):
45
45
  self,
46
46
  *,
47
47
  input: str,
48
- max_count: int | NotGiven = NOT_GIVEN,
48
+ max_count: int | Omit = omit,
49
49
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
50
50
  # The extra values given here take precedence over values defined on the client or passed to this method.
51
51
  extra_headers: Headers | None = None,
52
52
  extra_query: Query | None = None,
53
53
  extra_body: Body | None = None,
54
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
55
55
  ) -> SearchForStopListResponse:
56
56
  """
57
57
  Search for a stop based on its name.
@@ -112,13 +112,13 @@ class AsyncSearchForStopResource(AsyncAPIResource):
112
112
  self,
113
113
  *,
114
114
  input: str,
115
- max_count: int | NotGiven = NOT_GIVEN,
115
+ max_count: int | Omit = omit,
116
116
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
117
117
  # The extra values given here take precedence over values defined on the client or passed to this method.
118
118
  extra_headers: Headers | None = None,
119
119
  extra_query: Query | None = None,
120
120
  extra_body: Body | None = None,
121
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
121
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
122
122
  ) -> SearchForStopListResponse:
123
123
  """
124
124
  Search for a stop based on its name.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class ShapeResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> ShapeRetrieveResponse:
53
53
  """
54
54
  Retrieve a shape (the path traveled by a transit vehicle) by ID.
@@ -102,7 +102,7 @@ class AsyncShapeResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> ShapeRetrieveResponse:
107
107
  """
108
108
  Retrieve a shape (the path traveled by a transit vehicle) by ID.
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class StopResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> StopRetrieveResponse:
53
53
  """
54
54
  Get details of a specific stop
@@ -102,7 +102,7 @@ class AsyncStopResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> StopRetrieveResponse:
107
107
  """
108
108
  Get details of a specific stop
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class StopIDsForAgencyResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> StopIDsForAgencyListResponse:
53
53
  """
54
54
  Get stop IDs for a specific agency
@@ -102,7 +102,7 @@ class AsyncStopIDsForAgencyResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> StopIDsForAgencyListResponse:
107
107
  """
108
108
  Get stop IDs for a specific agency
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class StopsForAgencyResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> StopsForAgencyListResponse:
53
53
  """
54
54
  Get stops for a specific agency
@@ -102,7 +102,7 @@ class AsyncStopsForAgencyResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> StopsForAgencyListResponse:
107
107
  """
108
108
  Get stops for a specific agency
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ..types import stops_for_location_list_params
8
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from .._utils import maybe_transform, async_maybe_transform
10
10
  from .._compat import cached_property
11
11
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -46,16 +46,16 @@ class StopsForLocationResource(SyncAPIResource):
46
46
  *,
47
47
  lat: float,
48
48
  lon: float,
49
- lat_span: float | NotGiven = NOT_GIVEN,
50
- lon_span: float | NotGiven = NOT_GIVEN,
51
- query: str | NotGiven = NOT_GIVEN,
52
- radius: float | NotGiven = NOT_GIVEN,
49
+ lat_span: float | Omit = omit,
50
+ lon_span: float | Omit = omit,
51
+ query: str | Omit = omit,
52
+ radius: float | Omit = omit,
53
53
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
54
54
  # The extra values given here take precedence over values defined on the client or passed to this method.
55
55
  extra_headers: Headers | None = None,
56
56
  extra_query: Query | None = None,
57
57
  extra_body: Body | None = None,
58
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
58
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
59
59
  ) -> StopsForLocationListResponse:
60
60
  """
61
61
  stops-for-location
@@ -125,16 +125,16 @@ class AsyncStopsForLocationResource(AsyncAPIResource):
125
125
  *,
126
126
  lat: float,
127
127
  lon: float,
128
- lat_span: float | NotGiven = NOT_GIVEN,
129
- lon_span: float | NotGiven = NOT_GIVEN,
130
- query: str | NotGiven = NOT_GIVEN,
131
- radius: float | NotGiven = NOT_GIVEN,
128
+ lat_span: float | Omit = omit,
129
+ lon_span: float | Omit = omit,
130
+ query: str | Omit = omit,
131
+ radius: float | Omit = omit,
132
132
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
133
133
  # The extra values given here take precedence over values defined on the client or passed to this method.
134
134
  extra_headers: Headers | None = None,
135
135
  extra_query: Query | None = None,
136
136
  extra_body: Body | None = None,
137
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
137
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
138
138
  ) -> StopsForLocationListResponse:
139
139
  """
140
140
  stops-for-location
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ..types import stops_for_route_list_params
8
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from .._utils import maybe_transform, async_maybe_transform
10
10
  from .._compat import cached_property
11
11
  from .._resource import SyncAPIResource, AsyncAPIResource
@@ -45,14 +45,14 @@ class StopsForRouteResource(SyncAPIResource):
45
45
  self,
46
46
  route_id: str,
47
47
  *,
48
- include_polylines: bool | NotGiven = NOT_GIVEN,
49
- time: str | NotGiven = NOT_GIVEN,
48
+ include_polylines: bool | Omit = omit,
49
+ time: str | Omit = omit,
50
50
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
51
51
  # The extra values given here take precedence over values defined on the client or passed to this method.
52
52
  extra_headers: Headers | None = None,
53
53
  extra_query: Query | None = None,
54
54
  extra_body: Body | None = None,
55
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
56
56
  ) -> StopsForRouteListResponse:
57
57
  """
58
58
  Get stops for a specific route
@@ -115,14 +115,14 @@ class AsyncStopsForRouteResource(AsyncAPIResource):
115
115
  self,
116
116
  route_id: str,
117
117
  *,
118
- include_polylines: bool | NotGiven = NOT_GIVEN,
119
- time: str | NotGiven = NOT_GIVEN,
118
+ include_polylines: bool | Omit = omit,
119
+ time: str | Omit = omit,
120
120
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
121
121
  # The extra values given here take precedence over values defined on the client or passed to this method.
122
122
  extra_headers: Headers | None = None,
123
123
  extra_query: Query | None = None,
124
124
  extra_body: Body | None = None,
125
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
125
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
126
126
  ) -> StopsForRouteListResponse:
127
127
  """
128
128
  Get stops for a specific route
@@ -4,7 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
7
+ from .._types import Body, Query, Headers, NotGiven, not_given
8
8
  from .._compat import cached_property
9
9
  from .._resource import SyncAPIResource, AsyncAPIResource
10
10
  from .._response import (
@@ -48,7 +48,7 @@ class TripResource(SyncAPIResource):
48
48
  extra_headers: Headers | None = None,
49
49
  extra_query: Query | None = None,
50
50
  extra_body: Body | None = None,
51
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
52
52
  ) -> TripRetrieveResponse:
53
53
  """
54
54
  Get details of a specific trip
@@ -102,7 +102,7 @@ class AsyncTripResource(AsyncAPIResource):
102
102
  extra_headers: Headers | None = None,
103
103
  extra_query: Query | None = None,
104
104
  extra_body: Body | None = None,
105
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
105
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
106
106
  ) -> TripRetrieveResponse:
107
107
  """
108
108
  Get details of a specific trip