8000 TYP: Remove `trapz`, `in1d` and `row_stack` leftovers · BvB93/numpy@97623ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 97623ce

Browse files
committed
TYP: Remove trapz, in1d and row_stack leftovers
xref numpy#24445
1 parent fad52fc commit 97623ce

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

numpy/__init__.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ from numpy.lib._arraypad_impl import (
410410

411411
from numpy.lib._arraysetops_impl import (
412412
ediff1d as ediff1d,
413-
in1d as in1d,
414413
intersect1d as intersect1d,
415414
isin as isin,
416415
setdiff1d as setdiff1d,
@@ -453,7 +452,6 @@ from numpy.lib._function_base_impl import (
453452
bartlett as bartlett,
454453
blackman as blackman,
455454
kaiser as kaiser,
456-
trapz as trapz,
457455
i0 as i0,
458456
meshgrid as meshgrid,
459457
delete as delete,
@@ -531,7 +529,6 @@ from numpy.lib._polynomial_impl import (
531529

532530
from numpy.lib._shape_base_impl import (
533531
column_stack as column_stack,
534-
row_stack as row_stack,
535532
dstack as dstack,
536533
array_split as array_split,
537534
split as split,

numpy/lib/_arraysetops_impl.pyi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,6 @@ def setxor1d(
365365
assume_unique: bool = ...,
366366
) -> NDArray[Any]: ...
367367

368-
def in1d(
369-
ar1: ArrayLike,
370-
ar2: ArrayLike,
371-
assume_unique: bool = ...,
372-
invert: bool = ...,
373-
) -> NDArray[np.bool]: ...
374-
375368
def isin(
376369
element: ArrayLike,
377370
test_elements: ArrayLike,

numpy/lib/_function_base_impl.pyi

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,6 @@ def percentile(
621621
# (that we can reuse)
622622
quantile = percentile
623623

624-
# TODO: Returns a scalar for <= 1D array-likes; returns an ndarray otherwise
625-
def trapz(
626-
y: _ArrayLikeComplex_co | _ArrayLikeTD64_co | _ArrayLikeObject_co,
627-
x: None | _ArrayLikeComplex_co | _ArrayLikeTD64_co | _ArrayLikeObject_co = ...,
628-
dx: float = ...,
629-
axis: SupportsIndex = ...,
630-
) -> Any: ...
631-
632624
def meshgrid(
633625
*xi: ArrayLike,
634626
copy: bool = ...,

numpy/lib/_shape_base_impl.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ class _SupportsArrayWrap(Protocol):
5353

5454
__all__: list[str]
5555

56-
row_stack = vstack
57-
5856
def take_along_axis(
5957
arr: _SCT | NDArray[_SCT],
6058
indices: NDArray[integer[Any]],

0 commit comments

Comments
 (0)
0