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.0"
".": "0.177.1"
}
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-5ea7ed56030d4b00596b425a2efee0459583f4e0e283daad7ebb63a0cd76d29f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9f22ab139c225a56bc829befa825a81eb1f2bc1af4b1a934b6f8888d4e422a58.yml
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

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

### Bug Fixes

* **tests:** make test_get_platform less flaky ([#915](https://github.com/Increase/increase-python/issues/915)) ([190d629](https://github.com/Increase/increase-python/commit/190d6297f458a6ef4087e0b2637f0b8755e0dd05))


### Chores

* **internal:** bump pyright dependency ([#912](https://github.com/Increase/increase-python/issues/912)) ([b855922](https://github.com/Increase/increase-python/commit/b85592231974a4b1de78c1169d7eaada609c6720))


### Documentation

* **raw responses:** fix duplicate `the` ([#914](https://github.com/Increase/increase-python/issues/914)) ([e0d35cb](https://github.com/Increase/increase-python/commit/e0d35cbc3cc25d522e4a33fa1a9aac79d48e9c07))

## 0.177.0 (2025-01-14)

Full Changelog: [v0.176.2...v0.177.0](https://github.com/Increase/increase-python/compare/v0.176.2...v0.177.0)
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 = "increase"
version = "0.177.0"
version = "0.177.1"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pydantic-core==2.27.1
# via pydantic
pygments==2.18.0
# via rich
pyright==1.1.391
pyright==1.1.392.post0
pytest==8.3.3
# via pytest-asyncio
pytest-asyncio==0.24.0
Expand Down
8 changes: 7 additions & 1 deletion src/increase/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,13 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
raise ValueError(f"Subclasses of httpx.Response cannot be passed to `cast_to`")
return cast(R, response)

if inspect.isclass(origin) and not issubclass(origin, BaseModel) and issubclass(origin, pydantic.BaseModel):
if (
inspect.isclass(
origin # pyright: ignore[reportUnknownArgumentType]
)
and not issubclass(origin, BaseModel)
and issubclass(origin, pydantic.BaseModel)
):
raise TypeError("Pydantic models must subclass our base model type, e.g. `from increase import BaseModel`")

if (
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.0" # x-release-please-version
__version__ = "0.177.1" # x-release-please-version
4 changes: 2 additions & 2 deletions src/increase/resources/account_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AccountNumbersResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> AccountNumbersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -294,7 +294,7 @@ class AsyncAccountNumbersResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncAccountNumbersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/account_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AccountStatementsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> AccountStatementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -138,7 +138,7 @@ class AsyncAccountStatementsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncAccountStatementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/account_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AccountTransfersResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> AccountTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -299,7 +299,7 @@ class AsyncAccountTransfersResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncAccountTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class AccountsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> AccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -362,7 +362,7 @@ class AsyncAccountsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/ach_prenotifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ACHPrenotificationsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> ACHPrenotificationsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -259,7 +259,7 @@ class AsyncACHPrenotificationsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncACHPrenotificationsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ACHTransfersResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> ACHTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -395,7 +395,7 @@ class AsyncACHTransfersResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncACHTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/bookkeeping_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BookkeepingAccountsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> BookkeepingAccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -270,7 +270,7 @@ class AsyncBookkeepingAccountsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncBookkeepingAccountsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/bookkeeping_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BookkeepingEntriesResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> BookkeepingEntriesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -136,7 +136,7 @@ class AsyncBookkeepingEntriesResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncBookkeepingEntriesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/bookkeeping_entry_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BookkeepingEntrySetsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> BookkeepingEntrySetsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -204,7 +204,7 @@ class AsyncBookkeepingEntrySetsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncBookkeepingEntrySetsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/card_disputes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CardDisputesResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CardDisputesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -202,7 +202,7 @@ class AsyncCardDisputesResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCardDisputesResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/card_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CardPaymentsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CardPaymentsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -140,7 +140,7 @@ class AsyncCardPaymentsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCardPaymentsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/card_purchase_supplements.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CardPurchaseSupplementsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CardPurchaseSupplementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -139,7 +139,7 @@ class AsyncCardPurchaseSupplementsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCardPurchaseSupplementsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CardsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CardsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -325,7 +325,7 @@ class AsyncCardsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCardsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/check_deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CheckDepositsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CheckDepositsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -208,7 +208,7 @@ class AsyncCheckDepositsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCheckDepositsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CheckTransfersResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> CheckTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -366,7 +366,7 @@ class AsyncCheckTransfersResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncCheckTransfersResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
4 changes: 2 additions & 2 deletions src/increase/resources/declined_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DeclinedTransactionsResource(SyncAPIResource):
@cached_property
def with_raw_response(self) -> DeclinedTransactionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down Expand Up @@ -144,7 +144,7 @@ class AsyncDeclinedTransactionsResource(AsyncAPIResource):
@cached_property
def with_raw_response(self) -> AsyncDeclinedTransactionsResourceWithRawResponse:
"""
This property can be used as a prefix for any HTTP method call to return the
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/Increase/increase-python#accessing-raw-response-data-eg-headers
Expand Down
Loading
Loading