onebusaway 1.17.1__tar.gz → 1.17.3__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.
- onebusaway-1.17.3/.release-please-manifest.json +3 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/CHANGELOG.md +17 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/PKG-INFO +1 -1
- {onebusaway-1.17.1 → onebusaway-1.17.3}/pyproject.toml +1 -1
- {onebusaway-1.17.1 → onebusaway-1.17.3}/requirements-dev.lock +5 -2
- {onebusaway-1.17.1 → onebusaway-1.17.3}/requirements.lock +5 -2
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/__init__.py +3 -1
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_base_client.py +9 -9
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_client.py +8 -8
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_models.py +10 -4
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_qs.py +7 -7
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_types.py +18 -11
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_transform.py +2 -2
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_utils.py +4 -4
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_version.py +1 -1
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/agencies_with_coverage.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/agency.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/arrival_and_departure.py +17 -17
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/block.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/config.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/current_time.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/report_problem_with_stop.py +13 -13
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/report_problem_with_trip.py +23 -23
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/route.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/route_ids_for_agency.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/routes_for_agency.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/routes_for_location.py +11 -11
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/schedule_for_route.py +5 -5
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/schedule_for_stop.py +5 -5
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/search_for_route.py +5 -5
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/search_for_stop.py +5 -5
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/shape.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/stop.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/stop_ids_for_agency.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/stops_for_agency.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/stops_for_location.py +11 -11
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/stops_for_route.py +7 -7
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/trip.py +3 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/trip_details.py +13 -13
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/trip_for_vehicle.py +11 -11
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/trips_for_location.py +9 -9
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/trips_for_route.py +9 -9
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/vehicles_for_agency.py +5 -5
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_transform.py +9 -2
- onebusaway-1.17.1/.release-please-manifest.json +0 -3
- {onebusaway-1.17.1 → onebusaway-1.17.3}/.gitignore +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/CONTRIBUTING.md +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/LICENSE +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/README.md +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/SECURITY.md +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/api.md +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/bin/check-release-environment +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/bin/publish-pypi +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/.env.example +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/.keep +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/README.md +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/agencies_with_coverage.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/arrivals_and_departures_for_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/block.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/config.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/current_time.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/helpers/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/helpers/load_env.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/routes_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/routes_ids_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/schedule_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/schedule_for_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/search_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/search_for_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/shape.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/stop_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/stop_ids_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/stops_for_location.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/trip.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/trip_details.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/examples/vehicles_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/noxfile.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/release-please-config.json +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_compat.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_constants.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_exceptions.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_files.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_resource.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_streaming.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_compat.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_datetime_parse.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_logs.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_proxy.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_reflection.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_resources_proxy.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_streams.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_sync.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/_utils/_typing.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/lib/.keep +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/py.typed +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/resources/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/agencies_with_coverage_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/agency_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/arrival_and_departure_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/arrival_and_departure_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/arrival_and_departure_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/arrival_and_departure_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/block_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/config_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/current_time_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/report_problem_with_stop_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/report_problem_with_trip_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/route_ids_for_agency_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/route_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/routes_for_agency_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/routes_for_location_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/routes_for_location_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/schedule_for_route_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/schedule_for_route_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/schedule_for_stop_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/schedule_for_stop_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_route_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_route_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_route_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_route_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_stop_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_stop_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_stop_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/search_for_stop_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/shape_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/shared/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/shared/references.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/shared/response_wrapper.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stop_ids_for_agency_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stop_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stops_for_agency_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stops_for_location_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stops_for_location_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stops_for_route_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/stops_for_route_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trip_detail_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trip_detail_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trip_for_vehicle_retrieve_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trip_for_vehicle_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trip_retrieve_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trips_for_location_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trips_for_location_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trips_for_route_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/trips_for_route_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/vehicles_for_agency_list_params.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/onebusaway/types/vehicles_for_agency_list_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/src/open_transit/lib/.keep +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/__init__.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_agencies_with_coverage.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_arrival_and_departure.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_block.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_config.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_current_time.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_report_problem_with_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_report_problem_with_trip.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_route_ids_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_routes_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_routes_for_location.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_schedule_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_schedule_for_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_search_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_search_for_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_shape.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_stop.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_stop_ids_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_stops_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_stops_for_location.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_stops_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_trip.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_trip_details.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_trip_for_vehicle.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_trips_for_location.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_trips_for_route.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/api_resources/test_vehicles_for_agency.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/conftest.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/sample_file.txt +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_client.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_deepcopy.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_extract_files.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_files.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_models.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_qs.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_required_args.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_response.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_streaming.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_utils/test_datetime_parse.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_utils/test_proxy.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/test_utils/test_typing.py +0 -0
- {onebusaway-1.17.1 → onebusaway-1.17.3}/tests/utils.py +0 -0
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.17.3 (2025-09-20)
|
4
|
+
|
5
|
+
Full Changelog: [v1.17.2...v1.17.3](https://github.com/OneBusAway/python-sdk/compare/v1.17.2...v1.17.3)
|
6
|
+
|
7
|
+
### Chores
|
8
|
+
|
9
|
+
* do not install brew dependencies in ./scripts/bootstrap by default ([39dcea7](https://github.com/OneBusAway/python-sdk/commit/39dcea7358a13250e6ef328e8885052155a64445))
|
10
|
+
|
11
|
+
## 1.17.2 (2025-09-19)
|
12
|
+
|
13
|
+
Full Changelog: [v1.17.1...v1.17.2](https://github.com/OneBusAway/python-sdk/compare/v1.17.1...v1.17.2)
|
14
|
+
|
15
|
+
### Chores
|
16
|
+
|
17
|
+
* **internal:** update pydantic dependency ([c13d52b](https://github.com/OneBusAway/python-sdk/commit/c13d52be2ec7ab0ff9da3f2120792d9ed247881e))
|
18
|
+
* **types:** change optional parameter type from NotGiven to Omit ([c24d539](https://github.com/OneBusAway/python-sdk/commit/c24d539861b7594e5a88f68de5a422ab0db096e3))
|
19
|
+
|
3
20
|
## 1.17.1 (2025-09-06)
|
4
21
|
|
5
22
|
Full Changelog: [v1.17.0...v1.17.1](https://github.com/OneBusAway/python-sdk/compare/v1.17.0...v1.17.1)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: onebusaway
|
3
|
-
Version: 1.17.
|
3
|
+
Version: 1.17.3
|
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
|
@@ -88,9 +88,9 @@ pluggy==1.5.0
|
|
88
88
|
propcache==0.3.1
|
89
89
|
# via aiohttp
|
90
90
|
# via yarl
|
91
|
-
pydantic==2.
|
91
|
+
pydantic==2.11.9
|
92
92
|
# via onebusaway
|
93
|
-
pydantic-core==2.
|
93
|
+
pydantic-core==2.33.2
|
94
94
|
# via pydantic
|
95
95
|
pygments==2.18.0
|
96
96
|
# via rich
|
@@ -126,6 +126,9 @@ typing-extensions==4.12.2
|
|
126
126
|
# via pydantic
|
127
127
|
# via pydantic-core
|
128
128
|
# via pyright
|
129
|
+
# via typing-inspection
|
130
|
+
typing-inspection==0.4.1
|
131
|
+
# via pydantic
|
129
132
|
virtualenv==20.24.5
|
130
133
|
# via nox
|
131
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.
|
58
|
+
pydantic==2.11.9
|
59
59
|
# via onebusaway
|
60
|
-
pydantic-core==2.
|
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 =
|
149
|
-
json: Body | NotGiven =
|
150
|
-
params: Query | NotGiven =
|
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,
|
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 =
|
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 =
|
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 =
|
1822
|
-
post_parser: PostParser | NotGiven =
|
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,
|
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:
|
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 =
|
224
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
225
225
|
http_client: httpx.Client | None = None,
|
226
|
-
max_retries: int | NotGiven =
|
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:
|
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 =
|
457
|
+
timeout: float | Timeout | None | NotGiven = not_given,
|
458
458
|
http_client: httpx.AsyncClient | None = None,
|
459
|
-
max_retries: int | NotGiven =
|
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 =
|
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 =
|
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
|
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:
|
45
|
-
nested_format:
|
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:
|
60
|
-
nested_format:
|
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:
|
147
|
-
nested_format:
|
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
|
-
|
121
|
-
|
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
|
129
|
+
def create(timeout: Timeout | None | NotGiven = not_given): ...
|
127
130
|
|
128
131
|
|
129
|
-
|
130
|
-
|
131
|
-
|
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
|
-
|
146
|
+
not_given = NotGiven()
|
147
|
+
# for backwards compatibility:
|
144
148
|
NOT_GIVEN = NotGiven()
|
145
149
|
|
146
150
|
|
147
151
|
class Omit:
|
148
|
-
"""
|
149
|
-
|
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
|
160
|
-
client.post(..., headers={"Content-Type":
|
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
|
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
|
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,
|
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
|
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:
|
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.
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import httpx
|
6
6
|
|
7
|
-
from .._types import
|
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 =
|
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 =
|
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
|
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 =
|
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 =
|
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.
|
@@ -8,7 +8,7 @@ from datetime import datetime
|
|
8
8
|
import httpx
|
9
9
|
|
10
10
|
from ..types import arrival_and_departure_list_params, arrival_and_departure_retrieve_params
|
11
|
-
from .._types import
|
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
|
@@ -51,15 +51,15 @@ class ArrivalAndDepartureResource(SyncAPIResource):
|
|
51
51
|
*,
|
52
52
|
service_date: int,
|
53
53
|
trip_id: str,
|
54
|
-
stop_sequence: int |
|
55
|
-
time: int |
|
56
|
-
vehicle_id: str |
|
54
|
+
stop_sequence: int | Omit = omit,
|
55
|
+
time: int | Omit = omit,
|
56
|
+
vehicle_id: str | Omit = omit,
|
57
57
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
58
58
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
59
59
|
extra_headers: Headers | None = None,
|
60
60
|
extra_query: Query | None = None,
|
61
61
|
extra_body: Body | None = None,
|
62
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
62
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
63
63
|
) -> ArrivalAndDepartureRetrieveResponse:
|
64
64
|
"""
|
65
65
|
arrival-and-departure-for-stop
|
@@ -100,15 +100,15 @@ class ArrivalAndDepartureResource(SyncAPIResource):
|
|
100
100
|
self,
|
101
101
|
stop_id: str,
|
102
102
|
*,
|
103
|
-
minutes_after: int |
|
104
|
-
minutes_before: int |
|
105
|
-
time: Union[str, datetime] |
|
103
|
+
minutes_after: int | Omit = omit,
|
104
|
+
minutes_before: int | Omit = omit,
|
105
|
+
time: Union[str, datetime] | Omit = omit,
|
106
106
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
107
107
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
108
108
|
extra_headers: Headers | None = None,
|
109
109
|
extra_query: Query | None = None,
|
110
110
|
extra_body: Body | None = None,
|
111
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
111
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
112
112
|
) -> ArrivalAndDepartureListResponse:
|
113
113
|
"""
|
114
114
|
arrivals-and-departures-for-stop
|
@@ -176,15 +176,15 @@ class AsyncArrivalAndDepartureResource(AsyncAPIResource):
|
|
176
176
|
*,
|
177
177
|
service_date: int,
|
178
178
|
trip_id: str,
|
179
|
-
stop_sequence: int |
|
180
|
-
time: int |
|
181
|
-
vehicle_id: str |
|
179
|
+
stop_sequence: int | Omit = omit,
|
180
|
+
time: int | Omit = omit,
|
181
|
+
vehicle_id: str | Omit = omit,
|
182
182
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
183
183
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
184
184
|
extra_headers: Headers | None = None,
|
185
185
|
extra_query: Query | None = None,
|
186
186
|
extra_body: Body | None = None,
|
187
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
187
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
188
188
|
) -> ArrivalAndDepartureRetrieveResponse:
|
189
189
|
"""
|
190
190
|
arrival-and-departure-for-stop
|
@@ -225,15 +225,15 @@ class AsyncArrivalAndDepartureResource(AsyncAPIResource):
|
|
225
225
|
self,
|
226
226
|
stop_id: str,
|
227
227
|
*,
|
228
|
-
minutes_after: int |
|
229
|
-
minutes_before: int |
|
230
|
-
time: Union[str, datetime] |
|
228
|
+
minutes_after: int | Omit = omit,
|
229
|
+
minutes_before: int | Omit = omit,
|
230
|
+
time: Union[str, datetime] | Omit = omit,
|
231
231
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
232
232
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
233
233
|
extra_headers: Headers | None = None,
|
234
234
|
extra_query: Query | None = None,
|
235
235
|
extra_body: Body | None = None,
|
236
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
236
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
237
237
|
) -> ArrivalAndDepartureListResponse:
|
238
238
|
"""
|
239
239
|
arrivals-and-departures-for-stop
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
4
4
|
|
5
5
|
import httpx
|
6
6
|
|
7
|
-
from .._types import
|
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 BlockResource(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 =
|
51
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
52
52
|
) -> BlockRetrieveResponse:
|
53
53
|
"""
|
54
54
|
Get details of a specific block by ID
|
@@ -102,7 +102,7 @@ class AsyncBlockResource(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 =
|
105
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
106
106
|
) -> BlockRetrieveResponse:
|
107
107
|
"""
|
108
108
|
Get details of a specific block by ID
|