Skip to content

Commit dd7724c

Browse files
GH1037 PR feedback
1 parent 0baffcd commit dd7724c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pandas-stubs/core/algorithms.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,13 @@ def factorize(
5252
def factorize(
5353
values: Index | Series,
5454
sort: bool = ...,
55-
# Not actually positional-only, used to handle deprecations in 1.5.0
56-
*,
5755
use_na_sentinel: bool = ...,
5856
size_hint: int | None = ...,
5957
) -> tuple[np.ndarray, Index]: ...
6058
@overload
6159
def factorize(
6260
values: Categorical,
6361
sort: bool = ...,
64-
# Not actually positional-only, used to handle deprecations in 1.5.0
65-
*,
6662
use_na_sentinel: bool = ...,
6763
size_hint: int | None = ...,
6864
) -> tuple[np.ndarray, Categorical]: ...

pandas-stubs/core/arrays/base.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class ExtensionArray:
4242
def shift(self, periods: int = ..., fill_value: object = ...) -> Self: ...
4343
def unique(self): ...
4444
def searchsorted(self, value, side: str = ..., sorter=...): ...
45-
def factorize(
46-
self, sort: bool = ..., use_na_sentinel: bool = ...
47-
) -> tuple[np.ndarray, Self]: ...
45+
def factorize(self, use_na_sentinel: bool = ...) -> tuple[np.ndarray, Self]: ...
4846
def repeat(self, repeats, axis=...): ...
4947
def take(
5048
self,

0 commit comments

Comments
 (0)