Skip to content

Commit e022a59

Browse files
fern-api[bot]fern-supportjsklan
authored
🌿 Fern Regeneration -- August 8, 2025 (#167)
* SDK regeneration * add headers to api error (#168) Co-authored-by: jsklan <[email protected]> --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: Fern Support <[email protected]> Co-authored-by: jsklan <[email protected]>
1 parent 8545175 commit e022a59

File tree

2,389 files changed

+18464
-12500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,389 files changed

+18464
-12500
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
dist/
21
.mypy_cache/
2+
.ruff_cache/
33
__pycache__/
4+
dist/
45
poetry.toml
5-
.ruff_cache/

poetry.lock

Lines changed: 58 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ pydantic = ">= 1.9.2"
4141
pydantic-core = "^2.18.2"
4242
typing_extensions = ">= 4.0.0"
4343

44-
[tool.poetry.dev-dependencies]
45-
mypy = "1.0.1"
44+
[tool.poetry.group.dev.dependencies]
45+
mypy = "==1.13.0"
4646
pytest = "^7.4.0"
4747
pytest-asyncio = "^0.23.5"
4848
python-dateutil = "^2.9.0"
4949
types-python-dateutil = "^2.9.0.20240316"
50-
ruff = "^0.5.6"
50+
ruff = "==0.11.5"
5151

5252
[tool.pytest.ini_options]
5353
testpaths = [ "tests" ]
@@ -59,6 +59,26 @@ plugins = ["pydantic.mypy"]
5959
[tool.ruff]
6060
line-length = 120
6161

62+
[tool.ruff.lint]
63+
select = [
64+
"E", # pycodestyle errors
65+
"F", # pyflakes
66+
"I", # isort
67+
]
68+
ignore = [
69+
"E402", # Module level import not at top of file
70+
"E501", # Line too long
71+
"E711", # Comparison to `None` should be `cond is not None`
72+
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
73+
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
74+
"E722", # Do not use bare `except`
75+
"E731", # Do not assign a `lambda` expression, use a `def`
76+
"F821", # Undefined name
77+
"F841" # Local variable ... is assigned to but never used
78+
]
79+
80+
[tool.ruff.lint.isort]
81+
section-order = ["future", "standard-library", "third-party", "first-party"]
6282

6383
[build-system]
6484
requires = ["poetry-core"]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
httpx>=0.21.2
22
pydantic>= 1.9.2
3-
pydantic-core==^2.18.2
3+
pydantic-core==2.18.2
44
typing_extensions>= 4.0.0

src/square/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3+
# isort: skip_file
4+
35
from . import (
46
apple_pay,
57
bank_accounts,

src/square/apple_pay/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3+
# isort: skip_file
4+

src/square/apple_pay/client.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
import typing
4-
from ..core.client_wrapper import SyncClientWrapper
5-
from .raw_client import RawApplePayClient
4+
5+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
66
from ..core.request_options import RequestOptions
77
from ..types.register_domain_response import RegisterDomainResponse
8-
from ..core.client_wrapper import AsyncClientWrapper
9-
from .raw_client import AsyncRawApplePayClient
8+
from .raw_client import AsyncRawApplePayClient, RawApplePayClient
109

1110
# this is used as the default value for optional parameters
1211
OMIT = typing.cast(typing.Any, ...)
@@ -70,8 +69,8 @@ def register_domain(
7069
domain_name="example.com",
7170
)
7271
"""
73-
response = self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
74-
return response.data
72+
_response = self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
73+
return _response.data
7574

7675

7776
class AsyncApplePayClient:
@@ -140,5 +139,5 @@ async def main() -> None:
140139
141140
asyncio.run(main())
142141
"""
143-
response = await self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
144-
return response.data
142+
_response = await self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
143+
return _response.data

0 commit comments

Comments
 (0)