Skip to content

Commit 843fade

Browse files
IlyaasKclaude
andcommitted
style: ruff import-sort and format the pagination test
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 4554697 commit 843fade

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/test_pagination.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import httpx
44
import pytest
55

6-
from kernel.pagination import AsyncOffsetPagination, SyncOffsetPagination
6+
from kernel.pagination import SyncOffsetPagination, AsyncOffsetPagination
77

88
PageClass = Union[Type[SyncOffsetPagination[Any]], Type[AsyncOffsetPagination[Any]]]
99

@@ -12,9 +12,7 @@
1212
both_classes = pytest.mark.parametrize("cls", [SyncOffsetPagination, AsyncOffsetPagination])
1313

1414

15-
def _page(
16-
cls: PageClass, *, items: List[Any], next_offset: Optional[int], has_more: Optional[bool]
17-
) -> Any:
15+
def _page(cls: PageClass, *, items: List[Any], next_offset: Optional[int], has_more: Optional[bool]) -> Any:
1816
headers: dict[str, str] = {}
1917
if next_offset is not None:
2018
headers["X-Next-Offset"] = str(next_offset)

0 commit comments

Comments
 (0)