diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7f4bb0b5b..ab928dd0c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.177.1" + ".": "0.178.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 9478903e6..5eac66deb 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 201 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9f22ab139c225a56bc829befa825a81eb1f2bc1af4b1a934b6f8888d4e422a58.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-03ecb68309b2d2429b7c74b155e110f4d992425d54067160881ecc1d1aa1551e.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 0efdd4ceb..9e7ec7541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.178.0 (2025-01-21) + +Full Changelog: [v0.177.1...v0.178.0](https://github.com/Increase/increase-python/compare/v0.177.1...v0.178.0) + +### Features + +* **api:** api update ([#920](https://github.com/Increase/increase-python/issues/920)) ([1d47b66](https://github.com/Increase/increase-python/commit/1d47b66ddc6f13615c23b2f07876c4f1c3f86a99)) + + +### Chores + +* **internal:** avoid pytest-asyncio deprecation warning ([#917](https://github.com/Increase/increase-python/issues/917)) ([5319a20](https://github.com/Increase/increase-python/commit/5319a205632cdf1de1ba7b63a05456e5589ee5c8)) +* **internal:** minor style changes ([#919](https://github.com/Increase/increase-python/issues/919)) ([1fc8a52](https://github.com/Increase/increase-python/commit/1fc8a52b940b4c60634574847aebc680c8330e57)) + ## 0.177.1 (2025-01-20) Full Changelog: [v0.177.0...v0.177.1](https://github.com/Increase/increase-python/compare/v0.177.0...v0.177.1) diff --git a/pyproject.toml b/pyproject.toml index 2dc07ac59..77922d9c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.177.1" +version = "0.178.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" @@ -129,6 +129,7 @@ testpaths = ["tests"] addopts = "--tb=short" xfail_strict = true asyncio_mode = "auto" +asyncio_default_fixture_loop_scope = "session" filterwarnings = [ "error" ] diff --git a/src/increase/_response.py b/src/increase/_response.py index cfff40032..9597a5b3b 100644 --- a/src/increase/_response.py +++ b/src/increase/_response.py @@ -136,6 +136,8 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T: if cast_to and is_annotated_type(cast_to): cast_to = extract_type_arg(cast_to, 0) + origin = get_origin(cast_to) or cast_to + if self._is_sse_stream: if to: if not is_stream_class_type(to): @@ -195,8 +197,6 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T: if cast_to == bool: return cast(R, response.text.lower() == "true") - origin = get_origin(cast_to) or cast_to - if origin == APIResponse: raise RuntimeError("Unexpected state - cast_to is `APIResponse`") diff --git a/src/increase/_version.py b/src/increase/_version.py index fed4d4bcc..a78d6c9f0 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.177.1" # x-release-please-version +__version__ = "0.178.0" # x-release-please-version diff --git a/src/increase/resources/files.py b/src/increase/resources/files.py index b9bfe8da8..ac54dc1a0 100644 --- a/src/increase/resources/files.py +++ b/src/increase/resources/files.py @@ -59,6 +59,7 @@ def create( "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -98,6 +99,8 @@ def create( - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. @@ -279,6 +282,7 @@ async def create( "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -318,6 +322,8 @@ async def create( - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. diff --git a/src/increase/types/file.py b/src/increase/types/file.py index 362ead3ae..cb9079d4e 100644 --- a/src/increase/types/file.py +++ b/src/increase/types/file.py @@ -53,6 +53,7 @@ class File(BaseModel): "processed_check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "inbound_mail_item", "form_1099_int", "form_ss_4", @@ -86,6 +87,8 @@ class File(BaseModel): - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `inbound_mail_item` - A scanned mail item sent to Increase. - `form_1099_int` - IRS Form 1099-INT. - `form_ss_4` - IRS Form SS-4. diff --git a/src/increase/types/file_create_params.py b/src/increase/types/file_create_params.py index c71a677d4..bbf9fa309 100644 --- a/src/increase/types/file_create_params.py +++ b/src/increase/types/file_create_params.py @@ -24,6 +24,7 @@ class FileCreateParams(TypedDict, total=False): "check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "form_ss_4", "identity_document", "other", @@ -45,6 +46,8 @@ class FileCreateParams(TypedDict, total=False): - `mailed_check_image` - An image of a check that was mailed to a recipient. - `check_voucher_image` - An image to be printed on the bottom or voucher of a check that you've requested Increase print. + - `check_attachment_image` - An image to be printed on an additional page and + mailed with a check that you've requested Increase print. - `form_ss_4` - IRS Form SS-4. - `identity_document` - An image of a government-issued ID. - `other` - A file purpose not covered by any of the other cases. diff --git a/src/increase/types/file_list_params.py b/src/increase/types/file_list_params.py index afc00a66c..a6ca7ce80 100644 --- a/src/increase/types/file_list_params.py +++ b/src/increase/types/file_list_params.py @@ -71,6 +71,7 @@ class CreatedAt(TypedDict, total=False): "processed_check_image_back", "mailed_check_image", "check_voucher_image", + "check_attachment_image", "inbound_mail_item", "form_1099_int", "form_ss_4",