Commit 0b08854
committed
fix(pagination): drop @overload stubs to resolve D105/D418 pydocstyle conflict
pydocstyle D105 requires docstrings on magic methods but D418 prohibits
docstrings on @overload stubs — these rules are irreconcilable for
@overload-decorated __getitem__. Since PaginationList is the only file in
the project using @overload, there is no established project pattern.
Drop the two stubs and keep only the concrete implementation with its
existing docstring. The union signature 'SupportsIndex | slice -> T | list[T]'
is correct; callers lose the narrowed return type but the runtime behaviour
is unchanged. Also removes the now-unused 'overload' import.1 parent 10c2ba0 commit 0b08854
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | 119 | | |
126 | 120 | | |
127 | 121 | | |
| |||
0 commit comments