onebusaway 1.17.0__tar.gz → 1.17.2__tar.gz

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 (197) hide show
  1. onebusaway-1.17.2/.release-please-manifest.json +3 -0
  2. {onebusaway-1.17.0 → onebusaway-1.17.2}/CHANGELOG.md +18 -0
  3. {onebusaway-1.17.0 → onebusaway-1.17.2}/PKG-INFO +1 -1
  4. {onebusaway-1.17.0 → onebusaway-1.17.2}/pyproject.toml +53 -2
  5. {onebusaway-1.17.0 → onebusaway-1.17.2}/requirements-dev.lock +5 -3
  6. {onebusaway-1.17.0 → onebusaway-1.17.2}/requirements.lock +5 -2
  7. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/__init__.py +3 -1
  8. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_base_client.py +9 -9
  9. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_client.py +8 -8
  10. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_models.py +10 -4
  11. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_qs.py +7 -7
  12. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_types.py +18 -11
  13. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_transform.py +2 -2
  14. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_utils.py +4 -4
  15. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_version.py +1 -1
  16. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/agencies_with_coverage.py +3 -3
  17. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/agency.py +3 -3
  18. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/arrival_and_departure.py +17 -17
  19. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/block.py +3 -3
  20. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/config.py +3 -3
  21. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/current_time.py +3 -3
  22. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/report_problem_with_stop.py +13 -13
  23. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/report_problem_with_trip.py +23 -23
  24. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/route.py +3 -3
  25. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/route_ids_for_agency.py +3 -3
  26. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/routes_for_agency.py +3 -3
  27. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/routes_for_location.py +11 -11
  28. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/schedule_for_route.py +5 -5
  29. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/schedule_for_stop.py +5 -5
  30. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/search_for_route.py +5 -5
  31. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/search_for_stop.py +5 -5
  32. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/shape.py +3 -3
  33. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/stop.py +3 -3
  34. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/stop_ids_for_agency.py +3 -3
  35. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/stops_for_agency.py +3 -3
  36. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/stops_for_location.py +11 -11
  37. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/stops_for_route.py +7 -7
  38. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/trip.py +3 -3
  39. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/trip_details.py +13 -13
  40. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/trip_for_vehicle.py +11 -11
  41. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/trips_for_location.py +9 -9
  42. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/trips_for_route.py +9 -9
  43. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/vehicles_for_agency.py +5 -5
  44. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_client.py +6 -47
  45. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_transform.py +9 -2
  46. onebusaway-1.17.0/.release-please-manifest.json +0 -3
  47. onebusaway-1.17.0/mypy.ini +0 -50
  48. {onebusaway-1.17.0 → onebusaway-1.17.2}/.gitignore +0 -0
  49. {onebusaway-1.17.0 → onebusaway-1.17.2}/CONTRIBUTING.md +0 -0
  50. {onebusaway-1.17.0 → onebusaway-1.17.2}/LICENSE +0 -0
  51. {onebusaway-1.17.0 → onebusaway-1.17.2}/README.md +0 -0
  52. {onebusaway-1.17.0 → onebusaway-1.17.2}/SECURITY.md +0 -0
  53. {onebusaway-1.17.0 → onebusaway-1.17.2}/api.md +0 -0
  54. {onebusaway-1.17.0 → onebusaway-1.17.2}/bin/check-release-environment +0 -0
  55. {onebusaway-1.17.0 → onebusaway-1.17.2}/bin/publish-pypi +0 -0
  56. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/.env.example +0 -0
  57. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/.keep +0 -0
  58. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/README.md +0 -0
  59. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/agencies_with_coverage.py +0 -0
  60. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/arrivals_and_departures_for_stop.py +0 -0
  61. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/block.py +0 -0
  62. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/config.py +0 -0
  63. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/current_time.py +0 -0
  64. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/helpers/__init__.py +0 -0
  65. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/helpers/load_env.py +0 -0
  66. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/routes_for_agency.py +0 -0
  67. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/routes_ids_for_agency.py +0 -0
  68. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/schedule_for_route.py +0 -0
  69. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/schedule_for_stop.py +0 -0
  70. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/search_for_route.py +0 -0
  71. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/search_for_stop.py +0 -0
  72. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/shape.py +0 -0
  73. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/stop.py +0 -0
  74. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/stop_for_route.py +0 -0
  75. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/stop_ids_for_agency.py +0 -0
  76. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/stops_for_location.py +0 -0
  77. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/trip.py +0 -0
  78. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/trip_details.py +0 -0
  79. {onebusaway-1.17.0 → onebusaway-1.17.2}/examples/vehicles_for_agency.py +0 -0
  80. {onebusaway-1.17.0 → onebusaway-1.17.2}/noxfile.py +0 -0
  81. {onebusaway-1.17.0 → onebusaway-1.17.2}/release-please-config.json +0 -0
  82. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_compat.py +0 -0
  83. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_constants.py +0 -0
  84. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_exceptions.py +0 -0
  85. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_files.py +0 -0
  86. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_resource.py +0 -0
  87. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_response.py +0 -0
  88. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_streaming.py +0 -0
  89. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/__init__.py +0 -0
  90. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_compat.py +0 -0
  91. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_datetime_parse.py +0 -0
  92. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_logs.py +0 -0
  93. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_proxy.py +0 -0
  94. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_reflection.py +0 -0
  95. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_resources_proxy.py +0 -0
  96. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_streams.py +0 -0
  97. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_sync.py +0 -0
  98. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/_utils/_typing.py +0 -0
  99. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/lib/.keep +0 -0
  100. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/py.typed +0 -0
  101. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/resources/__init__.py +0 -0
  102. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/__init__.py +0 -0
  103. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/agencies_with_coverage_list_response.py +0 -0
  104. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/agency_retrieve_response.py +0 -0
  105. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/arrival_and_departure_list_params.py +0 -0
  106. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/arrival_and_departure_list_response.py +0 -0
  107. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/arrival_and_departure_retrieve_params.py +0 -0
  108. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/arrival_and_departure_retrieve_response.py +0 -0
  109. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/block_retrieve_response.py +0 -0
  110. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/config_retrieve_response.py +0 -0
  111. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/current_time_retrieve_response.py +0 -0
  112. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/report_problem_with_stop_retrieve_params.py +0 -0
  113. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/report_problem_with_trip_retrieve_params.py +0 -0
  114. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/route_ids_for_agency_list_response.py +0 -0
  115. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/route_retrieve_response.py +0 -0
  116. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/routes_for_agency_list_response.py +0 -0
  117. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/routes_for_location_list_params.py +0 -0
  118. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/routes_for_location_list_response.py +0 -0
  119. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/schedule_for_route_retrieve_params.py +0 -0
  120. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/schedule_for_route_retrieve_response.py +0 -0
  121. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/schedule_for_stop_retrieve_params.py +0 -0
  122. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/schedule_for_stop_retrieve_response.py +0 -0
  123. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_route_list_params.py +0 -0
  124. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_route_list_response.py +0 -0
  125. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_route_retrieve_params.py +0 -0
  126. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_route_retrieve_response.py +0 -0
  127. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_stop_list_params.py +0 -0
  128. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_stop_list_response.py +0 -0
  129. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_stop_retrieve_params.py +0 -0
  130. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/search_for_stop_retrieve_response.py +0 -0
  131. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/shape_retrieve_response.py +0 -0
  132. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/shared/__init__.py +0 -0
  133. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/shared/references.py +0 -0
  134. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/shared/response_wrapper.py +0 -0
  135. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stop_ids_for_agency_list_response.py +0 -0
  136. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stop_retrieve_response.py +0 -0
  137. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stops_for_agency_list_response.py +0 -0
  138. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stops_for_location_list_params.py +0 -0
  139. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stops_for_location_list_response.py +0 -0
  140. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stops_for_route_list_params.py +0 -0
  141. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/stops_for_route_list_response.py +0 -0
  142. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trip_detail_retrieve_params.py +0 -0
  143. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trip_detail_retrieve_response.py +0 -0
  144. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trip_for_vehicle_retrieve_params.py +0 -0
  145. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trip_for_vehicle_retrieve_response.py +0 -0
  146. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trip_retrieve_response.py +0 -0
  147. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trips_for_location_list_params.py +0 -0
  148. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trips_for_location_list_response.py +0 -0
  149. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trips_for_route_list_params.py +0 -0
  150. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/trips_for_route_list_response.py +0 -0
  151. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/vehicles_for_agency_list_params.py +0 -0
  152. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/onebusaway/types/vehicles_for_agency_list_response.py +0 -0
  153. {onebusaway-1.17.0 → onebusaway-1.17.2}/src/open_transit/lib/.keep +0 -0
  154. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/__init__.py +0 -0
  155. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/__init__.py +0 -0
  156. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_agencies_with_coverage.py +0 -0
  157. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_agency.py +0 -0
  158. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_arrival_and_departure.py +0 -0
  159. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_block.py +0 -0
  160. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_config.py +0 -0
  161. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_current_time.py +0 -0
  162. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_report_problem_with_stop.py +0 -0
  163. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_report_problem_with_trip.py +0 -0
  164. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_route.py +0 -0
  165. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_route_ids_for_agency.py +0 -0
  166. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_routes_for_agency.py +0 -0
  167. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_routes_for_location.py +0 -0
  168. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_schedule_for_route.py +0 -0
  169. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_schedule_for_stop.py +0 -0
  170. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_search_for_route.py +0 -0
  171. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_search_for_stop.py +0 -0
  172. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_shape.py +0 -0
  173. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_stop.py +0 -0
  174. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_stop_ids_for_agency.py +0 -0
  175. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_stops_for_agency.py +0 -0
  176. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_stops_for_location.py +0 -0
  177. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_stops_for_route.py +0 -0
  178. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_trip.py +0 -0
  179. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_trip_details.py +0 -0
  180. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_trip_for_vehicle.py +0 -0
  181. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_trips_for_location.py +0 -0
  182. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_trips_for_route.py +0 -0
  183. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/api_resources/test_vehicles_for_agency.py +0 -0
  184. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/conftest.py +0 -0
  185. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/sample_file.txt +0 -0
  186. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_deepcopy.py +0 -0
  187. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_extract_files.py +0 -0
  188. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_files.py +0 -0
  189. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_models.py +0 -0
  190. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_qs.py +0 -0
  191. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_required_args.py +0 -0
  192. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_response.py +0 -0
  193. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_streaming.py +0 -0
  194. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_utils/test_datetime_parse.py +0 -0
  195. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_utils/test_proxy.py +0 -0
  196. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/test_utils/test_typing.py +0 -0
  197. {onebusaway-1.17.0 → onebusaway-1.17.2}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.17.2"
3
+ }
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.17.2 (2025-09-19)
4
+
5
+ Full Changelog: [v1.17.1...v1.17.2](https://github.com/OneBusAway/python-sdk/compare/v1.17.1...v1.17.2)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** update pydantic dependency ([c13d52b](https://github.com/OneBusAway/python-sdk/commit/c13d52be2ec7ab0ff9da3f2120792d9ed247881e))
10
+ * **types:** change optional parameter type from NotGiven to Omit ([c24d539](https://github.com/OneBusAway/python-sdk/commit/c24d539861b7594e5a88f68de5a422ab0db096e3))
11
+
12
+ ## 1.17.1 (2025-09-06)
13
+
14
+ Full Changelog: [v1.17.0...v1.17.1](https://github.com/OneBusAway/python-sdk/compare/v1.17.0...v1.17.1)
15
+
16
+ ### Chores
17
+
18
+ * **internal:** move mypy configurations to `pyproject.toml` file ([baa06e6](https://github.com/OneBusAway/python-sdk/commit/baa06e63b06e3082adc11f9a7930276c8777d527))
19
+ * **tests:** simplify `get_platform` test ([0cced81](https://github.com/OneBusAway/python-sdk/commit/0cced81054c3e77548c7b34fe4899ccbbc9efb96))
20
+
3
21
  ## 1.17.0 (2025-09-04)
4
22
 
5
23
  Full Changelog: [v1.16.0...v1.17.0](https://github.com/OneBusAway/python-sdk/compare/v1.16.0...v1.17.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: onebusaway
3
- Version: 1.17.0
3
+ Version: 1.17.2
4
4
  Summary: The official Python library for the onebusaway-sdk API
5
5
  Project-URL: Homepage, https://github.com/OneBusAway/python-sdk
6
6
  Project-URL: Repository, https://github.com/OneBusAway/python-sdk
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "onebusaway"
3
- version = "1.17.0"
3
+ version = "1.17.2"
4
4
  description = "The official Python library for the onebusaway-sdk API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -56,7 +56,6 @@ dev-dependencies = [
56
56
  "dirty-equals>=0.6.0",
57
57
  "importlib-metadata>=6.7.0",
58
58
  "rich>=13.7.1",
59
- "nest_asyncio==1.6.0",
60
59
  "pytest-xdist>=3.6.1",
61
60
  ]
62
61
 
@@ -157,6 +156,58 @@ reportOverlappingOverload = false
157
156
  reportImportCycles = false
158
157
  reportPrivateUsage = false
159
158
 
159
+ [tool.mypy]
160
+ pretty = true
161
+ show_error_codes = true
162
+
163
+ # Exclude _files.py because mypy isn't smart enough to apply
164
+ # the correct type narrowing and as this is an internal module
165
+ # it's fine to just use Pyright.
166
+ #
167
+ # We also exclude our `tests` as mypy doesn't always infer
168
+ # types correctly and Pyright will still catch any type errors.
169
+ exclude = ['src/onebusaway/_files.py', '_dev/.*.py', 'tests/.*']
170
+
171
+ strict_equality = true
172
+ implicit_reexport = true
173
+ check_untyped_defs = true
174
+ no_implicit_optional = true
175
+
176
+ warn_return_any = true
177
+ warn_unreachable = true
178
+ warn_unused_configs = true
179
+
180
+ # Turn these options off as it could cause conflicts
181
+ # with the Pyright options.
182
+ warn_unused_ignores = false
183
+ warn_redundant_casts = false
184
+
185
+ disallow_any_generics = true
186
+ disallow_untyped_defs = true
187
+ disallow_untyped_calls = true
188
+ disallow_subclassing_any = true
189
+ disallow_incomplete_defs = true
190
+ disallow_untyped_decorators = true
191
+ cache_fine_grained = true
192
+
193
+ # By default, mypy reports an error if you assign a value to the result
194
+ # of a function call that doesn't return anything. We do this in our test
195
+ # cases:
196
+ # ```
197
+ # result = ...
198
+ # assert result is None
199
+ # ```
200
+ # Changing this codegen to make mypy happy would increase complexity
201
+ # and would not be worth it.
202
+ disable_error_code = "func-returns-value,overload-cannot-match"
203
+
204
+ # https://github.com/python/mypy/issues/12162
205
+ [[tool.mypy.overrides]]
206
+ module = "black.files.*"
207
+ ignore_errors = true
208
+ ignore_missing_imports = true
209
+
210
+
160
211
  [tool.ruff]
161
212
  line-length = 120
162
213
  output-format = "grouped"
@@ -75,7 +75,6 @@ multidict==6.4.4
75
75
  mypy==1.14.1
76
76
  mypy-extensions==1.0.0
77
77
  # via mypy
78
- nest-asyncio==1.6.0
79
78
  nodeenv==1.8.0
80
79
  # via pyright
81
80
  nox==2023.4.22
@@ -89,9 +88,9 @@ pluggy==1.5.0
89
88
  propcache==0.3.1
90
89
  # via aiohttp
91
90
  # via yarl
92
- pydantic==2.10.3
91
+ pydantic==2.11.9
93
92
  # via onebusaway
94
- pydantic-core==2.27.1
93
+ pydantic-core==2.33.2
95
94
  # via pydantic
96
95
  pygments==2.18.0
97
96
  # via rich
@@ -127,6 +126,9 @@ typing-extensions==4.12.2
127
126
  # via pydantic
128
127
  # via pydantic-core
129
128
  # via pyright
129
+ # via typing-inspection
130
+ typing-inspection==0.4.1
131
+ # via pydantic
130
132
  virtualenv==20.24.5
131
133
  # via nox
132
134
  yarl==1.20.0
@@ -55,9 +55,9 @@ multidict==6.4.4
55
55
  propcache==0.3.1
56
56
  # via aiohttp
57
57
  # via yarl
58
- pydantic==2.10.3
58
+ pydantic==2.11.9
59
59
  # via onebusaway
60
- pydantic-core==2.27.1
60
+ pydantic-core==2.33.2
61
61
  # via pydantic
62
62
  sniffio==1.3.0
63
63
  # via anyio
@@ -68,5 +68,8 @@ typing-extensions==4.12.2
68
68
  # via onebusaway
69
69
  # via pydantic
70
70
  # via pydantic-core
71
+ # via typing-inspection
72
+ typing-inspection==0.4.1
73
+ # via pydantic
71
74
  yarl==1.20.0
72
75
  # via aiohttp
@@ -3,7 +3,7 @@
3
3
  import typing as _t
4
4
 
5
5
  from . import types
6
- from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
7
7
  from ._utils import file_from_path
8
8
  from ._client import (
9
9
  Client,
@@ -48,7 +48,9 @@ __all__ = [
48
48
  "ProxiesTypes",
49
49
  "NotGiven",
50
50
  "NOT_GIVEN",
51
+ "not_given",
51
52
  "Omit",
53
+ "omit",
52
54
  "OnebusawaySDKError",
53
55
  "APIError",
54
56
  "APIStatusError",
@@ -42,7 +42,6 @@ from . import _exceptions
42
42
  from ._qs import Querystring
43
43
  from ._files import to_httpx_files, async_to_httpx_files
44
44
  from ._types import (
45
- NOT_GIVEN,
46
45
  Body,
47
46
  Omit,
48
47
  Query,
@@ -57,6 +56,7 @@ from ._types import (
57
56
  RequestOptions,
58
57
  HttpxRequestFiles,
59
58
  ModelBuilderProtocol,
59
+ not_given,
60
60
  )
61
61
  from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
62
62
  from ._compat import PYDANTIC_V1, model_copy, model_dump
@@ -145,9 +145,9 @@ class PageInfo:
145
145
  def __init__(
146
146
  self,
147
147
  *,
148
- url: URL | NotGiven = NOT_GIVEN,
149
- json: Body | NotGiven = NOT_GIVEN,
150
- params: Query | NotGiven = NOT_GIVEN,
148
+ url: URL | NotGiven = not_given,
149
+ json: Body | NotGiven = not_given,
150
+ params: Query | NotGiven = not_given,
151
151
  ) -> None:
152
152
  self.url = url
153
153
  self.json = json
@@ -595,7 +595,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
595
595
  # we internally support defining a temporary header to override the
596
596
  # default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
597
597
  # see _response.py for implementation details
598
- override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, NOT_GIVEN)
598
+ override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
599
599
  if is_given(override_cast_to):
600
600
  options.headers = headers
601
601
  return cast(Type[ResponseT], override_cast_to)
@@ -825,7 +825,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
825
825
  version: str,
826
826
  base_url: str | URL,
827
827
  max_retries: int = DEFAULT_MAX_RETRIES,
828
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
828
+ timeout: float | Timeout | None | NotGiven = not_given,
829
829
  http_client: httpx.Client | None = None,
830
830
  custom_headers: Mapping[str, str] | None = None,
831
831
  custom_query: Mapping[str, object] | None = None,
@@ -1356,7 +1356,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1356
1356
  base_url: str | URL,
1357
1357
  _strict_response_validation: bool,
1358
1358
  max_retries: int = DEFAULT_MAX_RETRIES,
1359
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
1359
+ timeout: float | Timeout | None | NotGiven = not_given,
1360
1360
  http_client: httpx.AsyncClient | None = None,
1361
1361
  custom_headers: Mapping[str, str] | None = None,
1362
1362
  custom_query: Mapping[str, object] | None = None,
@@ -1818,8 +1818,8 @@ def make_request_options(
1818
1818
  extra_query: Query | None = None,
1819
1819
  extra_body: Body | None = None,
1820
1820
  idempotency_key: str | None = None,
1821
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1822
- post_parser: PostParser | NotGiven = NOT_GIVEN,
1821
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
1822
+ post_parser: PostParser | NotGiven = not_given,
1823
1823
  ) -> RequestOptions:
1824
1824
  """Create a dict of type RequestOptions without keys of NotGiven values."""
1825
1825
  options: RequestOptions = {}
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import os
6
- from typing import Any, Union, Mapping
6
+ from typing import Any, Mapping
7
7
  from typing_extensions import Self, override
8
8
 
9
9
  import httpx
@@ -11,13 +11,13 @@ import httpx
11
11
  from . import _exceptions
12
12
  from ._qs import Querystring
13
13
  from ._types import (
14
- NOT_GIVEN,
15
14
  Omit,
16
15
  Timeout,
17
16
  NotGiven,
18
17
  Transport,
19
18
  ProxiesTypes,
20
19
  RequestOptions,
20
+ not_given,
21
21
  )
22
22
  from ._utils import is_given, get_async_library
23
23
  from ._version import __version__
@@ -111,7 +111,7 @@ class OnebusawaySDK(SyncAPIClient):
111
111
  *,
112
112
  api_key: str | None = None,
113
113
  base_url: str | httpx.URL | None = None,
114
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
114
+ timeout: float | Timeout | None | NotGiven = not_given,
115
115
  max_retries: int = DEFAULT_MAX_RETRIES,
116
116
  default_headers: Mapping[str, str] | None = None,
117
117
  default_query: Mapping[str, object] | None = None,
@@ -221,9 +221,9 @@ class OnebusawaySDK(SyncAPIClient):
221
221
  *,
222
222
  api_key: str | None = None,
223
223
  base_url: str | httpx.URL | None = None,
224
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
224
+ timeout: float | Timeout | None | NotGiven = not_given,
225
225
  http_client: httpx.Client | None = None,
226
- max_retries: int | NotGiven = NOT_GIVEN,
226
+ max_retries: int | NotGiven = not_given,
227
227
  default_headers: Mapping[str, str] | None = None,
228
228
  set_default_headers: Mapping[str, str] | None = None,
229
229
  default_query: Mapping[str, object] | None = None,
@@ -344,7 +344,7 @@ class AsyncOnebusawaySDK(AsyncAPIClient):
344
344
  *,
345
345
  api_key: str | None = None,
346
346
  base_url: str | httpx.URL | None = None,
347
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
347
+ timeout: float | Timeout | None | NotGiven = not_given,
348
348
  max_retries: int = DEFAULT_MAX_RETRIES,
349
349
  default_headers: Mapping[str, str] | None = None,
350
350
  default_query: Mapping[str, object] | None = None,
@@ -454,9 +454,9 @@ class AsyncOnebusawaySDK(AsyncAPIClient):
454
454
  *,
455
455
  api_key: str | None = None,
456
456
  base_url: str | httpx.URL | None = None,
457
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
457
+ timeout: float | Timeout | None | NotGiven = not_given,
458
458
  http_client: httpx.AsyncClient | None = None,
459
- max_retries: int | NotGiven = NOT_GIVEN,
459
+ max_retries: int | NotGiven = not_given,
460
460
  default_headers: Mapping[str, str] | None = None,
461
461
  set_default_headers: Mapping[str, str] | None = None,
462
462
  default_query: Mapping[str, object] | None = None,
@@ -256,7 +256,7 @@ class BaseModel(pydantic.BaseModel):
256
256
  mode: Literal["json", "python"] | str = "python",
257
257
  include: IncEx | None = None,
258
258
  exclude: IncEx | None = None,
259
- by_alias: bool = False,
259
+ by_alias: bool | None = None,
260
260
  exclude_unset: bool = False,
261
261
  exclude_defaults: bool = False,
262
262
  exclude_none: bool = False,
@@ -264,6 +264,7 @@ class BaseModel(pydantic.BaseModel):
264
264
  warnings: bool | Literal["none", "warn", "error"] = True,
265
265
  context: dict[str, Any] | None = None,
266
266
  serialize_as_any: bool = False,
267
+ fallback: Callable[[Any], Any] | None = None,
267
268
  ) -> dict[str, Any]:
268
269
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
269
270
 
@@ -295,10 +296,12 @@ class BaseModel(pydantic.BaseModel):
295
296
  raise ValueError("context is only supported in Pydantic v2")
296
297
  if serialize_as_any != False:
297
298
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
299
+ if fallback is not None:
300
+ raise ValueError("fallback is only supported in Pydantic v2")
298
301
  dumped = super().dict( # pyright: ignore[reportDeprecated]
299
302
  include=include,
300
303
  exclude=exclude,
301
- by_alias=by_alias,
304
+ by_alias=by_alias if by_alias is not None else False,
302
305
  exclude_unset=exclude_unset,
303
306
  exclude_defaults=exclude_defaults,
304
307
  exclude_none=exclude_none,
@@ -313,13 +316,14 @@ class BaseModel(pydantic.BaseModel):
313
316
  indent: int | None = None,
314
317
  include: IncEx | None = None,
315
318
  exclude: IncEx | None = None,
316
- by_alias: bool = False,
319
+ by_alias: bool | None = None,
317
320
  exclude_unset: bool = False,
318
321
  exclude_defaults: bool = False,
319
322
  exclude_none: bool = False,
320
323
  round_trip: bool = False,
321
324
  warnings: bool | Literal["none", "warn", "error"] = True,
322
325
  context: dict[str, Any] | None = None,
326
+ fallback: Callable[[Any], Any] | None = None,
323
327
  serialize_as_any: bool = False,
324
328
  ) -> str:
325
329
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
@@ -348,11 +352,13 @@ class BaseModel(pydantic.BaseModel):
348
352
  raise ValueError("context is only supported in Pydantic v2")
349
353
  if serialize_as_any != False:
350
354
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
355
+ if fallback is not None:
356
+ raise ValueError("fallback is only supported in Pydantic v2")
351
357
  return super().json( # type: ignore[reportDeprecated]
352
358
  indent=indent,
353
359
  include=include,
354
360
  exclude=exclude,
355
- by_alias=by_alias,
361
+ by_alias=by_alias if by_alias is not None else False,
356
362
  exclude_unset=exclude_unset,
357
363
  exclude_defaults=exclude_defaults,
358
364
  exclude_none=exclude_none,
@@ -4,7 +4,7 @@ from typing import Any, List, Tuple, Union, Mapping, TypeVar
4
4
  from urllib.parse import parse_qs, urlencode
5
5
  from typing_extensions import Literal, get_args
6
6
 
7
- from ._types import NOT_GIVEN, NotGiven, NotGivenOr
7
+ from ._types import NotGiven, not_given
8
8
  from ._utils import flatten
9
9
 
10
10
  _T = TypeVar("_T")
@@ -41,8 +41,8 @@ class Querystring:
41
41
  self,
42
42
  params: Params,
43
43
  *,
44
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
45
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
44
+ array_format: ArrayFormat | NotGiven = not_given,
45
+ nested_format: NestedFormat | NotGiven = not_given,
46
46
  ) -> str:
47
47
  return urlencode(
48
48
  self.stringify_items(
@@ -56,8 +56,8 @@ class Querystring:
56
56
  self,
57
57
  params: Params,
58
58
  *,
59
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
60
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
59
+ array_format: ArrayFormat | NotGiven = not_given,
60
+ nested_format: NestedFormat | NotGiven = not_given,
61
61
  ) -> list[tuple[str, str]]:
62
62
  opts = Options(
63
63
  qs=self,
@@ -143,8 +143,8 @@ class Options:
143
143
  self,
144
144
  qs: Querystring = _qs,
145
145
  *,
146
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
147
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
146
+ array_format: ArrayFormat | NotGiven = not_given,
147
+ nested_format: NestedFormat | NotGiven = not_given,
148
148
  ) -> None:
149
149
  self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format
150
150
  self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format
@@ -117,18 +117,21 @@ class RequestOptions(TypedDict, total=False):
117
117
  # Sentinel class used until PEP 0661 is accepted
118
118
  class NotGiven:
119
119
  """
120
- A sentinel singleton class used to distinguish omitted keyword arguments
121
- from those passed in with the value None (which may have different behavior).
120
+ For parameters with a meaningful None value, we need to distinguish between
121
+ the user explicitly passing None, and the user not passing the parameter at
122
+ all.
123
+
124
+ User code shouldn't need to use not_given directly.
122
125
 
123
126
  For example:
124
127
 
125
128
  ```py
126
- def get(timeout: Union[int, NotGiven, None] = NotGiven()) -> Response: ...
129
+ def create(timeout: Timeout | None | NotGiven = not_given): ...
127
130
 
128
131
 
129
- get(timeout=1) # 1s timeout
130
- get(timeout=None) # No timeout
131
- get() # Default timeout behavior, which may not be statically known at the method definition.
132
+ create(timeout=1) # 1s timeout
133
+ create(timeout=None) # No timeout
134
+ create() # Default timeout behavior
132
135
  ```
133
136
  """
134
137
 
@@ -140,13 +143,14 @@ class NotGiven:
140
143
  return "NOT_GIVEN"
141
144
 
142
145
 
143
- NotGivenOr = Union[_T, NotGiven]
146
+ not_given = NotGiven()
147
+ # for backwards compatibility:
144
148
  NOT_GIVEN = NotGiven()
145
149
 
146
150
 
147
151
  class Omit:
148
- """In certain situations you need to be able to represent a case where a default value has
149
- to be explicitly removed and `None` is not an appropriate substitute, for example:
152
+ """
153
+ To explicitly omit something from being sent in a request, use `omit`.
150
154
 
151
155
  ```py
152
156
  # as the default `Content-Type` header is `application/json` that will be sent
@@ -156,8 +160,8 @@ class Omit:
156
160
  # to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983'
157
161
  client.post(..., headers={"Content-Type": "multipart/form-data"})
158
162
 
159
- # instead you can remove the default `application/json` header by passing Omit
160
- client.post(..., headers={"Content-Type": Omit()})
163
+ # instead you can remove the default `application/json` header by passing omit
164
+ client.post(..., headers={"Content-Type": omit})
161
165
  ```
162
166
  """
163
167
 
@@ -165,6 +169,9 @@ class Omit:
165
169
  return False
166
170
 
167
171
 
172
+ omit = Omit()
173
+
174
+
168
175
  @runtime_checkable
169
176
  class ModelBuilderProtocol(Protocol):
170
177
  @classmethod
@@ -268,7 +268,7 @@ def _transform_typeddict(
268
268
  annotations = get_type_hints(expected_type, include_extras=True)
269
269
  for key, value in data.items():
270
270
  if not is_given(value):
271
- # we don't need to include `NotGiven` values here as they'll
271
+ # we don't need to include omitted values here as they'll
272
272
  # be stripped out before the request is sent anyway
273
273
  continue
274
274
 
@@ -434,7 +434,7 @@ async def _async_transform_typeddict(
434
434
  annotations = get_type_hints(expected_type, include_extras=True)
435
435
  for key, value in data.items():
436
436
  if not is_given(value):
437
- # we don't need to include `NotGiven` values here as they'll
437
+ # we don't need to include omitted values here as they'll
438
438
  # be stripped out before the request is sent anyway
439
439
  continue
440
440
 
@@ -21,7 +21,7 @@ from typing_extensions import TypeGuard
21
21
 
22
22
  import sniffio
23
23
 
24
- from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
24
+ from .._types import Omit, NotGiven, FileTypes, HeadersLike
25
25
 
26
26
  _T = TypeVar("_T")
27
27
  _TupleT = TypeVar("_TupleT", bound=Tuple[object, ...])
@@ -63,7 +63,7 @@ def _extract_items(
63
63
  try:
64
64
  key = path[index]
65
65
  except IndexError:
66
- if isinstance(obj, NotGiven):
66
+ if not is_given(obj):
67
67
  # no value was provided - we can safely ignore
68
68
  return []
69
69
 
@@ -126,8 +126,8 @@ def _extract_items(
126
126
  return []
127
127
 
128
128
 
129
- def is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]:
130
- return not isinstance(obj, NotGiven)
129
+ def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
130
+ return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)
131
131
 
132
132
 
133
133
  # Type safe methods for narrowing types with TypeVars.
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "onebusaway"
4
- __version__ = "1.17.0" # x-release-please-version
4
+ __version__ = "1.17.2" # x-release-please-version
@@ -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 (
@@ -47,7 +47,7 @@ class AgenciesWithCoverageResource(SyncAPIResource):
47
47
  extra_headers: Headers | None = None,
48
48
  extra_query: Query | None = None,
49
49
  extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
51
51
  ) -> AgenciesWithCoverageListResponse:
52
52
  """
53
53
  Returns a list of all transit agencies currently supported by OneBusAway along
@@ -90,7 +90,7 @@ class AsyncAgenciesWithCoverageResource(AsyncAPIResource):
90
90
  extra_headers: Headers | None = None,
91
91
  extra_query: Query | None = None,
92
92
  extra_body: Body | None = None,
93
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
93
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
94
94
  ) -> AgenciesWithCoverageListResponse:
95
95
  """
96
96
  Returns a list of all transit agencies currently supported by OneBusAway along
@@ -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 AgencyResource(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
  ) -> AgencyRetrieveResponse:
53
53
  """
54
54
  Retrieve information for a specific transit agency identified by its unique ID.
@@ -102,7 +102,7 @@ class AsyncAgencyResource(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
  ) -> AgencyRetrieveResponse:
107
107
  """
108
108
  Retrieve information for a specific transit agency identified by its unique ID.