Skip to content
Merged
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
24 changes: 24 additions & 0 deletions numpy/lib/_arraysetops_impl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> NDArray[_ScalarT]: ...
@overload # unknown scalar-type, FFF
def unique(
Expand All @@ -112,6 +113,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> _AnyArray: ...
@overload # known scalar-type, TFF
def unique(
Expand All @@ -122,6 +124,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray]: ...
@overload # unknown scalar-type, TFF
def unique(
Expand All @@ -132,6 +135,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray]: ...
@overload # known scalar-type, FTF (positional)
def unique(
Expand All @@ -142,6 +146,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray]: ...
@overload # known scalar-type, FTF (keyword)
def unique(
Expand All @@ -152,6 +157,7 @@ def unique(
return_counts: L[False] = False,
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray]: ...
@overload # unknown scalar-type, FTF (positional)
def unique(
Expand All @@ -162,6 +168,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray]: ...
@overload # unknown scalar-type, FTF (keyword)
def unique(
Expand All @@ -172,6 +179,7 @@ def unique(
return_counts: L[False] = False,
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray]: ...
@overload # known scalar-type, FFT (positional)
def unique(
Expand All @@ -182,6 +190,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray]: ...
@overload # known scalar-type, FFT (keyword)
def unique(
Expand All @@ -192,6 +201,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray]: ...
@overload # unknown scalar-type, FFT (positional)
def unique(
Expand All @@ -202,6 +212,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray]: ...
@overload # unknown scalar-type, FFT (keyword)
def unique(
Expand All @@ -212,6 +223,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray]: ...
@overload # known scalar-type, TTF
def unique(
Expand All @@ -222,6 +234,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray]: ...
@overload # unknown scalar-type, TTF
def unique(
Expand All @@ -232,6 +245,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray]: ...
@overload # known scalar-type, TFT (positional)
def unique(
Expand All @@ -242,6 +256,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray]: ...
@overload # known scalar-type, TFT (keyword)
def unique(
Expand All @@ -252,6 +267,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray]: ...
@overload # unknown scalar-type, TFT (positional)
def unique(
Expand All @@ -262,6 +278,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray]: ...
@overload # unknown scalar-type, TFT (keyword)
def unique(
Expand All @@ -272,6 +289,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray]: ...
@overload # known scalar-type, FTT (positional)
def unique(
Expand All @@ -282,6 +300,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray]: ...
@overload # known scalar-type, FTT (keyword)
def unique(
Expand All @@ -292,6 +311,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray]: ...
@overload # unknown scalar-type, FTT (positional)
def unique(
Expand All @@ -302,6 +322,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray]: ...
@overload # unknown scalar-type, FTT (keyword)
def unique(
Expand All @@ -312,6 +333,7 @@ def unique(
return_counts: L[True],
axis: SupportsIndex | None = None,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray]: ...
@overload # known scalar-type, TTT
def unique(
Expand All @@ -322,6 +344,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[NDArray[_ScalarT], _IntArray, _IntArray, _IntArray]: ...
@overload # unknown scalar-type, TTT
def unique(
Expand All @@ -332,6 +355,7 @@ def unique(
axis: SupportsIndex | None = None,
*,
equal_nan: bool = True,
sorted: bool = True,
) -> tuple[_AnyArray, _IntArray, _IntArray, _IntArray]: ...

#
Expand Down
Loading