Skip to content

🌿 Fern Regeneration -- August 8, 2025 #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 11, 2025
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dist/
.mypy_cache/
.ruff_cache/
__pycache__/
dist/
poetry.toml
.ruff_cache/
109 changes: 58 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 23 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ pydantic = ">= 1.9.2"
pydantic-core = "^2.18.2"
typing_extensions = ">= 4.0.0"

[tool.poetry.dev-dependencies]
mypy = "1.0.1"
[tool.poetry.group.dev.dependencies]
mypy = "==1.13.0"
pytest = "^7.4.0"
pytest-asyncio = "^0.23.5"
python-dateutil = "^2.9.0"
types-python-dateutil = "^2.9.0.20240316"
ruff = "^0.5.6"
ruff = "==0.11.5"

[tool.pytest.ini_options]
testpaths = [ "tests" ]
Expand All @@ -59,6 +59,26 @@ plugins = ["pydantic.mypy"]
[tool.ruff]
line-length = 120

[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E402", # Module level import not at top of file
"E501", # Line too long
"E711", # Comparison to `None` should be `cond is not None`
"E712", # Avoid equality comparisons to `True`; use `if ...:` checks
"E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks
"E722", # Do not use bare `except`
"E731", # Do not assign a `lambda` expression, use a `def`
"F821", # Undefined name
"F841" # Local variable ... is assigned to but never used
]

[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party"]

[build-system]
requires = ["poetry-core"]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
httpx>=0.21.2
pydantic>= 1.9.2
pydantic-core==^2.18.2
pydantic-core==2.18.2
typing_extensions>= 4.0.0
2 changes: 2 additions & 0 deletions src/square/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

from . import (
apple_pay,
bank_accounts,
Expand Down
2 changes: 2 additions & 0 deletions src/square/apple_pay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

15 changes: 7 additions & 8 deletions src/square/apple_pay/client.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# This file was auto-generated by Fern from our API Definition.

import typing
from ..core.client_wrapper import SyncClientWrapper
from .raw_client import RawApplePayClient

from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
from ..core.request_options import RequestOptions
from ..types.register_domain_response import RegisterDomainResponse
from ..core.client_wrapper import AsyncClientWrapper
from .raw_client import AsyncRawApplePayClient
from .raw_client import AsyncRawApplePayClient, RawApplePayClient

# this is used as the default value for optional parameters
OMIT = typing.cast(typing.Any, ...)
Expand Down Expand Up @@ -70,8 +69,8 @@ def register_domain(
domain_name="example.com",
)
"""
response = self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
return response.data
_response = self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
return _response.data


class AsyncApplePayClient:
Expand Down Expand Up @@ -140,5 +139,5 @@ async def main() -> None:

asyncio.run(main())
"""
response = await self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
return response.data
_response = await self._raw_client.register_domain(domain_name=domain_name, request_options=request_options)
return _response.data
Loading
Loading