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.104.0"
".": "0.105.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 168
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-117e0ee9b030a2efc3b09e189e445fb1a26fd32f1c563f385b9d7071a959c550.yml
openapi_spec_hash: e529a3fa8c3a79d3664db391683334c3
config_hash: 22e4b128e110e2767daa9d95428ebf9d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
config_hash: ac676e77c8ca051c7aad978c26e96345
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 0.105.0 (2025-09-09)

Full Changelog: [v0.104.0...v0.105.0](https://github.com/lithic-com/lithic-python/compare/v0.104.0...v0.105.0)

### Features

* **api:** adds support for unpauseing external bank accounts ([6abb97a](https://github.com/lithic-com/lithic-python/commit/6abb97ac297e522db029326aa42f526ee4ab6b56))


### Bug Fixes

* **types:** add missing types to method arguments ([2a2cf4f](https://github.com/lithic-com/lithic-python/commit/2a2cf4f23bbed5067f494d7865194f2237397a67))


### Chores

* **internal:** move mypy configurations to `pyproject.toml` file ([7334406](https://github.com/lithic-com/lithic-python/commit/73344067058de624d05271c91360f9554935c26e))
* **tests:** simplify `get_platform` test ([fb87755](https://github.com/lithic-com/lithic-python/commit/fb87755ec9d3575d5720da0e30d07df120955fd5))

## 0.104.0 (2025-09-04)

Full Changelog: [v0.103.1...v0.104.0](https://github.com/lithic-com/lithic-python/compare/v0.103.1...v0.104.0)
Expand Down
50 changes: 0 additions & 50 deletions mypy.ini

This file was deleted.

55 changes: 53 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lithic"
version = "0.104.0"
version = "0.105.0"
description = "The official Python library for the lithic API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -56,7 +56,6 @@ dev-dependencies = [
"dirty-equals>=0.6.0",
"importlib-metadata>=6.7.0",
"rich>=13.7.1",
"nest_asyncio==1.6.0",
"pytest-xdist>=3.6.1",
]

Expand Down Expand Up @@ -157,6 +156,58 @@ reportOverlappingOverload = false
reportImportCycles = false
reportPrivateUsage = false

[tool.mypy]
pretty = true
show_error_codes = true

# Exclude _files.py because mypy isn't smart enough to apply
# the correct type narrowing and as this is an internal module
# it's fine to just use Pyright.
#
# We also exclude our `tests` as mypy doesn't always infer
# types correctly and Pyright will still catch any type errors.
exclude = ['src/lithic/_files.py', '_dev/.*.py', 'tests/.*']

strict_equality = true
implicit_reexport = true
check_untyped_defs = true
no_implicit_optional = true

warn_return_any = true
warn_unreachable = true
warn_unused_configs = true

# Turn these options off as it could cause conflicts
# with the Pyright options.
warn_unused_ignores = false
warn_redundant_casts = false

disallow_any_generics = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
cache_fine_grained = true

# By default, mypy reports an error if you assign a value to the result
# of a function call that doesn't return anything. We do this in our test
# cases:
# ```
# result = ...
# assert result is None
# ```
# Changing this codegen to make mypy happy would increase complexity
# and would not be worth it.
disable_error_code = "func-returns-value,overload-cannot-match"

# https://github.com/python/mypy/issues/12162
[[tool.mypy.overrides]]
module = "black.files.*"
ignore_errors = true
ignore_missing_imports = true


[tool.ruff]
line-length = 120
output-format = "grouped"
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ multidict==6.4.4
mypy==1.14.1
mypy-extensions==1.0.0
# via mypy
nest-asyncio==1.6.0
nodeenv==1.8.0
# via pyright
nox==2023.4.22
Expand Down
2 changes: 1 addition & 1 deletion src/lithic/_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__ = "lithic"
__version__ = "0.104.0" # x-release-please-version
__version__ = "0.105.0" # x-release-please-version
10 changes: 5 additions & 5 deletions src/lithic/resources/account_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Any, List, Union, cast
from typing import Any, Union, cast
from datetime import datetime
from typing_extensions import Literal

Expand Down Expand Up @@ -69,9 +69,9 @@ def list(
ending_before: str | NotGiven = NOT_GIVEN,
financial_account_token: str | NotGiven = NOT_GIVEN,
page_size: int | NotGiven = NOT_GIVEN,
result: List[Literal["APPROVED", "DECLINED"]] | NotGiven = NOT_GIVEN,
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
status: List[Literal["DECLINED", "EXPIRED", "PENDING", "SETTLED", "VOIDED", "RETURNED", "REVERSED"]]
status: Literal["DECLINED", "EXPIRED", "PENDING", "RETURNED", "REVERSED", "SETTLED", "VOIDED"]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -233,9 +233,9 @@ def list(
ending_before: str | NotGiven = NOT_GIVEN,
financial_account_token: str | NotGiven = NOT_GIVEN,
page_size: int | NotGiven = NOT_GIVEN,
result: List[Literal["APPROVED", "DECLINED"]] | NotGiven = NOT_GIVEN,
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
status: List[Literal["DECLINED", "EXPIRED", "PENDING", "SETTLED", "VOIDED", "RETURNED", "REVERSED"]]
status: Literal["DECLINED", "EXPIRED", "PENDING", "RETURNED", "REVERSED", "SETTLED", "VOIDED"]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down
10 changes: 8 additions & 2 deletions src/lithic/resources/account_holders.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,14 @@ def create(
self,
*,
beneficial_owner_individuals: Iterable[account_holder_create_params.KYBBeneficialOwnerIndividual]
| Iterable[account_holder_create_params.KYBDelegatedBeneficialOwnerIndividual]
| NotGiven = NOT_GIVEN,
business_entity: account_holder_create_params.KYBBusinessEntity
| account_holder_create_params.KYBDelegatedBusinessEntity
| NotGiven = NOT_GIVEN,
control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN,
control_person: account_holder_create_params.KYBControlPerson
| account_holder_create_params.KYBDelegatedControlPerson
| NotGiven = NOT_GIVEN,
nature_of_business: str | NotGiven = NOT_GIVEN,
tos_timestamp: str | NotGiven = NOT_GIVEN,
workflow: Literal["KYB_BASIC", "KYB_BYO"]
Expand Down Expand Up @@ -1416,11 +1419,14 @@ async def create(
self,
*,
beneficial_owner_individuals: Iterable[account_holder_create_params.KYBBeneficialOwnerIndividual]
| Iterable[account_holder_create_params.KYBDelegatedBeneficialOwnerIndividual]
| NotGiven = NOT_GIVEN,
business_entity: account_holder_create_params.KYBBusinessEntity
| account_holder_create_params.KYBDelegatedBusinessEntity
| NotGiven = NOT_GIVEN,
control_person: account_holder_create_params.KYBControlPerson | NotGiven = NOT_GIVEN,
control_person: account_holder_create_params.KYBControlPerson
| account_holder_create_params.KYBDelegatedControlPerson
| NotGiven = NOT_GIVEN,
nature_of_business: str | NotGiven = NOT_GIVEN,
tos_timestamp: str | NotGiven = NOT_GIVEN,
workflow: Literal["KYB_BASIC", "KYB_BYO"]
Expand Down
12 changes: 6 additions & 6 deletions src/lithic/resources/auth_rules/v2/backtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def create(
endpoint.

Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
`CONDITIONAL_3DS_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is
generally not supported. In specific cases (i.e. where Lithic has pre-calculated
the requested velocity metrics for historical transactions), a backtest may be
`CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
not supported. In specific cases (i.e. where Lithic has pre-calculated the
requested velocity metrics for historical transactions), a backtest may be
feasible. However, such cases are uncommon and customers should not anticipate
support for velocity backtests under most configurations. If a historical
transaction does not feature the required inputs to evaluate the rule, then it
Expand Down Expand Up @@ -219,9 +219,9 @@ async def create(
endpoint.

Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
`CONDITIONAL_3DS_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is
generally not supported. In specific cases (i.e. where Lithic has pre-calculated
the requested velocity metrics for historical transactions), a backtest may be
`CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
not supported. In specific cases (i.e. where Lithic has pre-calculated the
requested velocity metrics for historical transactions), a backtest may be
feasible. However, such cases are uncommon and customers should not anticipate
support for velocity backtests under most configurations. If a historical
transaction does not feature the required inputs to evaluate the rule, then it
Expand Down
Loading