Skip to content

Commit 56dab16

Browse files
Merge pull request #35 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.9
2 parents a9cd996 + b0397b6 commit 56dab16

File tree

8 files changed

+19
-31
lines changed

8 files changed

+19
-31
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.8"
2+
".": "0.1.0-alpha.9"
33
}

.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-160e2615de51b1febaeb9f4a2fbbb7e70939e1ebec74946e7ec1e026868fed7e.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-912f1aea248013c509e8c8dc1021bbe3d421d4ff8f46773c4a93a48995146eba.yml

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.1.0-alpha.9 (2024-07-31)
4+
5+
Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#34](https://github.com/OneBusAway/python-sdk/issues/34)) ([d60f5d7](https://github.com/OneBusAway/python-sdk/commit/d60f5d72bed809667875d4548bc4909d5125a6d5))
10+
311
## 0.1.0-alpha.8 (2024-07-30)
412

513
Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/OneBusAway/python-sdk/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)

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.8"
3+
version = "0.1.0-alpha.9"
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.8" # x-release-please-version
4+
__version__ = "0.1.0-alpha.9" # x-release-please-version

src/onebusaway/resources/stops_for_location.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def with_streaming_response(self) -> StopsForLocationResourceWithStreamingRespon
3636
def retrieve(
3737
self,
3838
*,
39-
key: str,
4039
lat: float | NotGiven = NOT_GIVEN,
4140
lon: float | NotGiven = NOT_GIVEN,
4241
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -67,7 +66,6 @@ def retrieve(
6766
timeout=timeout,
6867
query=maybe_transform(
6968
{
70-
"key": key,
7169
"lat": lat,
7270
"lon": lon,
7371
},
@@ -90,7 +88,6 @@ def with_streaming_response(self) -> AsyncStopsForLocationResourceWithStreamingR
9088
async def retrieve(
9189
self,
9290
*,
93-
key: str,
9491
lat: float | NotGiven = NOT_GIVEN,
9592
lon: float | NotGiven = NOT_GIVEN,
9693
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -121,7 +118,6 @@ async def retrieve(
121118
timeout=timeout,
122119
query=await async_maybe_transform(
123120
{
124-
"key": key,
125121
"lat": lat,
126122
"lon": lon,
127123
},

src/onebusaway/types/stops_for_location_retrieve_params.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Required, TypedDict
5+
from typing_extensions import TypedDict
66

77
__all__ = ["StopsForLocationRetrieveParams"]
88

99

1010
class StopsForLocationRetrieveParams(TypedDict, total=False):
11-
key: Required[str]
12-
1311
lat: float
1412

1513
lon: float

tests/api_resources/test_stops_for_location.py

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,20 @@ class TestStopsForLocation:
1919

2020
@parametrize
2121
def test_method_retrieve(self, client: OnebusawaySDK) -> None:
22-
stops_for_location = client.stops_for_location.retrieve(
23-
key="key",
24-
)
22+
stops_for_location = client.stops_for_location.retrieve()
2523
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])
2624

2725
@parametrize
2826
def test_method_retrieve_with_all_params(self, client: OnebusawaySDK) -> None:
2927
stops_for_location = client.stops_for_location.retrieve(
30-
key="key",
3128
lat=0,
3229
lon=0,
3330
)
3431
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])
3532

3633
@parametrize
3734
def test_raw_response_retrieve(self, client: OnebusawaySDK) -> None:
38-
response = client.stops_for_location.with_raw_response.retrieve(
39-
key="key",
40-
)
35+
response = client.stops_for_location.with_raw_response.retrieve()
4136

4237
assert response.is_closed is True
4338
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -46,9 +41,7 @@ def test_raw_response_retrieve(self, client: OnebusawaySDK) -> None:
4641

4742
@parametrize
4843
def test_streaming_response_retrieve(self, client: OnebusawaySDK) -> None:
49-
with client.stops_for_location.with_streaming_response.retrieve(
50-
key="key",
51-
) as response:
44+
with client.stops_for_location.with_streaming_response.retrieve() as response:
5245
assert not response.is_closed
5346
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
5447

@@ -63,25 +56,20 @@ class TestAsyncStopsForLocation:
6356

6457
@parametrize
6558
async def test_method_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
66-
stops_for_location = await async_client.stops_for_location.retrieve(
67-
key="key",
68-
)
59+
stops_for_location = await async_client.stops_for_location.retrieve()
6960
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])
7061

7162
@parametrize
7263
async def test_method_retrieve_with_all_params(self, async_client: AsyncOnebusawaySDK) -> None:
7364
stops_for_location = await async_client.stops_for_location.retrieve(
74-
key="key",
7565
lat=0,
7666
lon=0,
7767
)
7868
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])
7969

8070
@parametrize
8171
async def test_raw_response_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
82-
response = await async_client.stops_for_location.with_raw_response.retrieve(
83-
key="key",
84-
)
72+
response = await async_client.stops_for_location.with_raw_response.retrieve()
8573

8674
assert response.is_closed is True
8775
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -90,9 +78,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncOnebusawaySDK) ->
9078

9179
@parametrize
9280
async def test_streaming_response_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
93-
async with async_client.stops_for_location.with_streaming_response.retrieve(
94-
key="key",
95-
) as response:
81+
async with async_client.stops_for_location.with_streaming_response.retrieve() as response:
9682
assert not response.is_closed
9783
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
9884

0 commit comments

Comments
 (0)