Skip to content

Commit c58e171

Browse files
Merge pull request #42 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.11
2 parents 7560b0a + 4170e67 commit c58e171

24 files changed

Lines changed: 174 additions & 161 deletions

.release-please-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.10"
3-
}
2+
".": "0.1.0-alpha.11"
3+
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 17
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-261df351536029839245955df4df7341de315fe2b1d1d6aeb063eaef62bcddc9.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-e1da29690ebfb4c6c07ede3d292a4f6babcd2202d6f3bb38bfa287ae04dfeb50.yml

CHANGELOG.md

Lines changed: 122 additions & 114 deletions
Large diffs are not rendered by default.

examples/helpers/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .load_env import load_env, load_settings
2+
3+
__all__ = ["load_settings", "load_env"]

examples/stops_for_location.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Any
2+
13
from helpers.load_env import load_settings
24

35
from onebusaway import OnebusawaySDK
@@ -16,7 +18,6 @@
1618
oba = OnebusawaySDK(**settings)
1719

1820
space_needle_stops = oba.stops_for_location.retrieve(
19-
key="TEST", # TODO FIXME: I shouldn't have to specify the API key here.
2021
lat=47.6205,
2122
lon=-122.3493,
2223
)
@@ -26,18 +27,19 @@
2627

2728
# make it easy to look up routes by ID.
2829
reference_map = {}
29-
for route in references.routes:
30-
reference_map[route.id] = route
30+
for ref_route in references.routes:
31+
reference_map[ref_route.id] = ref_route
3132

3233
for stop in stops:
3334
print(f"{stop.name} ({stop.lat}, {stop.lon})")
3435
print(" Routes:")
3536

3637
for route_id in stop.route_ids:
37-
route = reference_map[route_id]
38+
# TODO: add type to route
39+
route: Any = reference_map[route_id]
3840

3941
# Get a string that looks like "D Line - Blue Ridge/Crown Hill - Ballard - Downtown Seattle"
40-
description = [route.null_safe_short_name, route.description]
41-
description = [e for e in description if e]
42-
description = " - ".join(description)
43-
print(f" {description}")
42+
description_list = [route.null_safe_short_name, route.description]
43+
description_list = [e for e in description_list if e]
44+
description_str = " - ".join(description_list)
45+
print(f" {description_str}")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "onebusaway"
3-
version = "0.1.0-alpha.10"
3+
version = "0.1.0-alpha.11"
44
description = "The official Python library for the onebusaway-sdk API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/onebusaway/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "onebusaway"
4-
__version__ = "0.1.0-alpha.10" # x-release-please-version
4+
__version__ = "0.1.0-alpha.11" # x-release-please-version

src/onebusaway/types/agencies_with_coverage_retrieve_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ class AgenciesWithCoverageRetrieveResponseData(BaseModel):
3636

3737

3838
class AgenciesWithCoverageRetrieveResponse(ResponseWrapper):
39-
data: Optional[AgenciesWithCoverageRetrieveResponseData] = None
39+
data: AgenciesWithCoverageRetrieveResponseData

src/onebusaway/types/agency_retrieve_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ class AgencyRetrieveResponseData(BaseModel):
4242

4343

4444
class AgencyRetrieveResponse(ResponseWrapper):
45-
data: Optional[AgencyRetrieveResponseData] = None
45+
data: AgencyRetrieveResponseData

src/onebusaway/types/arrival_and_departure_list_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,4 @@ class ArrivalAndDepartureListResponseData(BaseModel):
278278

279279

280280
class ArrivalAndDepartureListResponse(ResponseWrapper):
281-
data: Optional[ArrivalAndDepartureListResponseData] = None
281+
data: ArrivalAndDepartureListResponseData

0 commit comments

Comments
 (0)