Skip to content

Commit 10c2ba0

Browse files
committed
fix(pagination): use noqa:D105 on overload stubs instead of docstrings
D418 prohibits docstrings on @overload stubs; suppress D105 (missing docstring in magic method) with inline noqa comments instead.
1 parent 9fbcdd3 commit 10c2ba0

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎pyiceberg/utils/pagination.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,10 @@ def __ne__(self, other: object) -> bool:
117117
# ------------------------------------------------------------------
118118

119119
@overload
120-
def __getitem__(self, idx: SupportsIndex) -> T:
121-
"""Return item at integer index, fetching pages as needed."""
122-
...
120+
def __getitem__(self, idx: SupportsIndex) -> T: ... # noqa: D105
123121

124122
@overload
125-
def __getitem__(self, idx: slice) -> list[T]:
126-
"""Return slice, fetching all remaining pages first."""
127-
...
123+
def __getitem__(self, idx: slice) -> list[T]: ... # noqa: D105
128124

129125
def __getitem__(self, idx: SupportsIndex | slice) -> T | list[T]:
130126
"""Fetch pages as needed before returning the requested item(s)."""

0 commit comments

Comments
 (0)