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 @@
{
".": "1.14.1"
".": "1.14.2"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.14.2 (2025-02-11)

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

### Chores

* **internal:** codegen related update ([#595](https://github.com/Finch-API/finch-api-python/issues/595)) ([aebf66b](https://github.com/Finch-API/finch-api-python/commit/aebf66b5e4039bdd6edd9f04edde2113a980fca2))

## 1.14.1 (2025-02-10)

Full Changelog: [v1.14.0...v1.14.1](https://github.com/Finch-API/finch-api-python/compare/v1.14.0...v1.14.1)
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 = "finch-api"
version = "1.14.1"
version = "1.14.2"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_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__ = "finch"
__version__ = "1.14.1" # x-release-please-version
__version__ = "1.14.2" # x-release-please-version
24 changes: 12 additions & 12 deletions src/finch/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def next_page_info(self) -> None:
class SyncIndividualsPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
individuals: List[_T]
"""The array of employees."""
paging: Paging
paging: Optional[Paging] = None

@override
def _get_page_items(self) -> List[_T]:
Expand All @@ -135,7 +135,7 @@ def _get_page_items(self) -> List[_T]:
@override
def next_page_info(self) -> Optional[PageInfo]:
offset = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.offset is not None:
offset = self.paging.offset
if offset is None:
Expand All @@ -145,7 +145,7 @@ def next_page_info(self) -> Optional[PageInfo]:
current_count = offset + length

count = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.count is not None:
count = self.paging.count
if count is None:
Expand All @@ -160,7 +160,7 @@ def next_page_info(self) -> Optional[PageInfo]:
class AsyncIndividualsPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
individuals: List[_T]
"""The array of employees."""
paging: Paging
paging: Optional[Paging] = None

@override
def _get_page_items(self) -> List[_T]:
Expand All @@ -172,7 +172,7 @@ def _get_page_items(self) -> List[_T]:
@override
def next_page_info(self) -> Optional[PageInfo]:
offset = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.offset is not None:
offset = self.paging.offset
if offset is None:
Expand All @@ -182,7 +182,7 @@ def next_page_info(self) -> Optional[PageInfo]:
current_count = offset + length

count = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.count is not None:
count = self.paging.count
if count is None:
Expand All @@ -196,7 +196,7 @@ def next_page_info(self) -> Optional[PageInfo]:

class SyncPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
data: List[_T]
paging: Paging
paging: Optional[Paging] = None

@override
def _get_page_items(self) -> List[_T]:
Expand All @@ -208,7 +208,7 @@ def _get_page_items(self) -> List[_T]:
@override
def next_page_info(self) -> Optional[PageInfo]:
offset = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.offset is not None:
offset = self.paging.offset
if offset is None:
Expand All @@ -218,7 +218,7 @@ def next_page_info(self) -> Optional[PageInfo]:
current_count = offset + length

count = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.count is not None:
count = self.paging.count
if count is None:
Expand All @@ -232,7 +232,7 @@ def next_page_info(self) -> Optional[PageInfo]:

class AsyncPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
data: List[_T]
paging: Paging
paging: Optional[Paging] = None

@override
def _get_page_items(self) -> List[_T]:
Expand All @@ -244,7 +244,7 @@ def _get_page_items(self) -> List[_T]:
@override
def next_page_info(self) -> Optional[PageInfo]:
offset = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.offset is not None:
offset = self.paging.offset
if offset is None:
Expand All @@ -254,7 +254,7 @@ def next_page_info(self) -> Optional[PageInfo]:
current_count = offset + length

count = None
if self.paging is not None: # pyright: ignore[reportUnnecessaryComparison]
if self.paging is not None:
if self.paging.count is not None:
count = self.paging.count
if count is None:
Expand Down