Skip to content

release: 0.1.0-alpha.9 #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.8"
".": "0.1.0-alpha.9"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-160e2615de51b1febaeb9f4a2fbbb7e70939e1ebec74946e7ec1e026868fed7e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-912f1aea248013c509e8c8dc1021bbe3d421d4ff8f46773c4a93a48995146eba.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.9 (2024-07-31)

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)

### Features

* **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))

## 0.1.0-alpha.8 (2024-07-30)

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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "onebusaway"
version = "0.1.0-alpha.8"
version = "0.1.0-alpha.9"
description = "The official Python library for the onebusaway-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/onebusaway/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "onebusaway"
__version__ = "0.1.0-alpha.8" # x-release-please-version
__version__ = "0.1.0-alpha.9" # x-release-please-version
4 changes: 0 additions & 4 deletions src/onebusaway/resources/stops_for_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def with_streaming_response(self) -> StopsForLocationResourceWithStreamingRespon
def retrieve(
self,
*,
key: str,
lat: float | NotGiven = NOT_GIVEN,
lon: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -67,7 +66,6 @@ def retrieve(
timeout=timeout,
query=maybe_transform(
{
"key": key,
"lat": lat,
"lon": lon,
},
Expand All @@ -90,7 +88,6 @@ def with_streaming_response(self) -> AsyncStopsForLocationResourceWithStreamingR
async def retrieve(
self,
*,
key: str,
lat: float | NotGiven = NOT_GIVEN,
lon: float | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -121,7 +118,6 @@ async def retrieve(
timeout=timeout,
query=await async_maybe_transform(
{
"key": key,
"lat": lat,
"lon": lon,
},
Expand Down
4 changes: 1 addition & 3 deletions src/onebusaway/types/stops_for_location_retrieve_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

from __future__ import annotations

from typing_extensions import Required, TypedDict
from typing_extensions import TypedDict

__all__ = ["StopsForLocationRetrieveParams"]


class StopsForLocationRetrieveParams(TypedDict, total=False):
key: Required[str]

lat: float

lon: float
26 changes: 6 additions & 20 deletions tests/api_resources/test_stops_for_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,20 @@ class TestStopsForLocation:

@parametrize
def test_method_retrieve(self, client: OnebusawaySDK) -> None:
stops_for_location = client.stops_for_location.retrieve(
key="key",
)
stops_for_location = client.stops_for_location.retrieve()
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])

@parametrize
def test_method_retrieve_with_all_params(self, client: OnebusawaySDK) -> None:
stops_for_location = client.stops_for_location.retrieve(
key="key",
lat=0,
lon=0,
)
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])

@parametrize
def test_raw_response_retrieve(self, client: OnebusawaySDK) -> None:
response = client.stops_for_location.with_raw_response.retrieve(
key="key",
)
response = client.stops_for_location.with_raw_response.retrieve()

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

@parametrize
def test_streaming_response_retrieve(self, client: OnebusawaySDK) -> None:
with client.stops_for_location.with_streaming_response.retrieve(
key="key",
) as response:
with client.stops_for_location.with_streaming_response.retrieve() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

Expand All @@ -63,25 +56,20 @@ class TestAsyncStopsForLocation:

@parametrize
async def test_method_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
stops_for_location = await async_client.stops_for_location.retrieve(
key="key",
)
stops_for_location = await async_client.stops_for_location.retrieve()
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])

@parametrize
async def test_method_retrieve_with_all_params(self, async_client: AsyncOnebusawaySDK) -> None:
stops_for_location = await async_client.stops_for_location.retrieve(
key="key",
lat=0,
lon=0,
)
assert_matches_type(StopsForLocationRetrieveResponse, stops_for_location, path=["response"])

@parametrize
async def test_raw_response_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
response = await async_client.stops_for_location.with_raw_response.retrieve(
key="key",
)
response = await async_client.stops_for_location.with_raw_response.retrieve()

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

@parametrize
async def test_streaming_response_retrieve(self, async_client: AsyncOnebusawaySDK) -> None:
async with async_client.stops_for_location.with_streaming_response.retrieve(
key="key",
) as response:
async with async_client.stops_for_location.with_streaming_response.retrieve() as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

Expand Down