Skip to content
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.177.1"
".": "0.178.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -129,6 +129,7 @@ testpaths = ["tests"]
addopts = "--tb=short"
xfail_strict = true
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
"error"
]
Expand Down
4 changes: 2 additions & 2 deletions src/increase/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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`")

Expand Down
2 changes: 1 addition & 1 deletion src/increase/_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__ = "increase"
__version__ = "0.177.1" # x-release-please-version
__version__ = "0.178.0" # x-release-please-version
6 changes: 6 additions & 0 deletions src/increase/resources/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def create(
"check_image_back",
"mailed_check_image",
"check_voucher_image",
"check_attachment_image",
"form_ss_4",
"identity_document",
"other",
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/increase/types/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/increase/types/file_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/increase/types/file_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading