Skip to content

Commit d29437e

Browse files
release: 1.42.2 (#686)
* chore: add missing docstrings * chore(internal): add missing files argument to base client * fix: use async_to_httpx_files in patch method * codegen metadata * release: 1.42.2 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent c7b0dbe commit d29437e

33 files changed

+127
-7
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.42.1"
2+
".": "1.42.2"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-39e0191e43a9db93c8f35e91d10013f05352a2bedcf7ead6bac437957f6e922e.yml
3-
openapi_spec_hash: 58c2cf578f0736b8c5df957f6a61190b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f81c5824a9002c980fc0d66c4d52e6cbd8baf7678f5e0f2215909357cff6f82c.yml
3+
openapi_spec_hash: 7714062cac3bb5597b8571172775bc92
44
config_hash: 0892e2e0eeb0343a022afa62e9080dd1

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 1.42.2 (2025-12-17)
4+
5+
Full Changelog: [v1.42.1...v1.42.2](https://github.com/Finch-API/finch-api-python/compare/v1.42.1...v1.42.2)
6+
7+
### Bug Fixes
8+
9+
* use async_to_httpx_files in patch method ([4a91924](https://github.com/Finch-API/finch-api-python/commit/4a91924e1a39f14de1f91f01e3d1c4c86d30e9d0))
10+
11+
12+
### Chores
13+
14+
* add missing docstrings ([0e4c89b](https://github.com/Finch-API/finch-api-python/commit/0e4c89bc8bb32e44f0bdfbf3c3d349c5d33c033d))
15+
* **internal:** add missing files argument to base client ([ff3e0f5](https://github.com/Finch-API/finch-api-python/commit/ff3e0f57959407b4cd0ee2263db1d945acfb6178))
16+
317
## 1.42.1 (2025-12-08)
418

519
Full Changelog: [v1.42.0...v1.42.1](https://github.com/Finch-API/finch-api-python/compare/v1.42.0...v1.42.1)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "finch-api"
3-
version = "1.42.1"
3+
version = "1.42.2"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/finch/_base_client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,9 +1262,12 @@ def patch(
12621262
*,
12631263
cast_to: Type[ResponseT],
12641264
body: Body | None = None,
1265+
files: RequestFiles | None = None,
12651266
options: RequestOptions = {},
12661267
) -> ResponseT:
1267-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1268+
opts = FinalRequestOptions.construct(
1269+
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
1270+
)
12681271
return self.request(cast_to, opts)
12691272

12701273
def put(
@@ -1796,9 +1799,12 @@ async def patch(
17961799
*,
17971800
cast_to: Type[ResponseT],
17981801
body: Body | None = None,
1802+
files: RequestFiles | None = None,
17991803
options: RequestOptions = {},
18001804
) -> ResponseT:
1801-
opts = FinalRequestOptions.construct(method="patch", url=path, json_data=body, **options)
1805+
opts = FinalRequestOptions.construct(
1806+
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
1807+
)
18021808
return await self.request(cast_to, opts)
18031809

18041810
async def put(

src/finch/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "finch"
4-
__version__ = "1.42.1" # x-release-please-version
4+
__version__ = "1.42.2" # x-release-please-version

src/finch/types/account_update_event.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ class AccountUpdateEventDataAuthenticationMethodSupportedFieldsPayment(BaseModel
393393

394394

395395
class AccountUpdateEventDataAuthenticationMethodSupportedFields(BaseModel):
396+
"""The supported data fields returned by our HR and payroll endpoints"""
397+
396398
company: Optional[AccountUpdateEventDataAuthenticationMethodSupportedFieldsCompany] = None
397399

398400
directory: Optional[AccountUpdateEventDataAuthenticationMethodSupportedFieldsDirectory] = None

src/finch/types/connect/session_new_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class SessionNewParams(TypedDict, total=False):
5656

5757

5858
class Integration(TypedDict, total=False):
59+
"""Integration configuration for the connect session"""
60+
5961
provider: Required[str]
6062
"""The provider to integrate with"""
6163

src/finch/types/hris/benefit_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class CompanyContributionTier(TypedDict, total=False):
4040

4141

4242
class CompanyContribution(TypedDict, total=False):
43+
"""The company match for this benefit."""
44+
4345
tiers: Required[Iterable[CompanyContributionTier]]
4446

4547
type: Required[Literal["match"]]

src/finch/types/hris/benefits_support.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212

1313
class BenefitsSupport(BaseModel):
14+
"""Each benefit type and their supported features.
15+
16+
If the benefit type is not supported, the property will be null
17+
"""
18+
1419
commuter: Optional[BenefitFeaturesAndOperations] = None
1520

1621
custom_post_tax: Optional[BenefitFeaturesAndOperations] = None

0 commit comments

Comments
 (0)