Skip to content

Commit 2278ebd

Browse files
committed
clean up tests for deleted functions
1 parent 557953c commit 2278ebd

File tree

6 files changed

+0
-25
lines changed

6 files changed

+0
-25
lines changed

pandas-stubs/api/types/__init__.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ from pandas._libs.lib import infer_dtype as infer_dtype
22

33
from pandas.core.dtypes.api import (
44
is_any_real_numeric_dtype as is_any_real_numeric_dtype,
5-
is_array_like as is_array_like,
65
is_bool as is_bool,
76
is_bool_dtype as is_bool_dtype,
87
is_complex as is_complex,

pandas-stubs/core/arraylike.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ from typing import Any
22

33
from typing_extensions import Self
44

5-
from pandas._libs.ops_dispatch import (
6-
maybe_dispatch_ufunc_to_dunder_op as maybe_dispatch_ufunc_to_dunder_op,
7-
)
8-
95
class OpsMixin:
106
def __eq__(self, other: object) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
117
def __ne__(self, other: object) -> Self: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]

pandas-stubs/core/dtypes/api.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from pandas.core.dtypes.common import (
22
is_any_real_numeric_dtype as is_any_real_numeric_dtype,
3-
is_array_like as is_array_like,
43
is_bool as is_bool,
54
is_bool_dtype as is_bool_dtype,
65
is_complex as is_complex,

pandas-stubs/core/dtypes/common.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ from pandas._typing import (
1010
)
1111

1212
from pandas.core.dtypes.inference import (
13-
is_array_like as is_array_like,
1413
is_bool as is_bool,
1514
is_complex as is_complex,
1615
is_dict_like as is_dict_like,

tests/extension/decimal/array.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
134134
):
135135
return NotImplemented
136136

137-
result = arraylike.maybe_dispatch_ufunc_to_dunder_op(
138-
self, ufunc, method, *inputs, **kwargs
139-
)
140-
if result is not NotImplemented:
141-
# e.g. test_array_ufunc_series_scalar_other
142-
return result
143-
144137
if "out" in kwargs:
145138
return arraylike.dispatch_ufunc_with_out( # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]
146139
self, ufunc, method, *inputs, **kwargs

tests/test_api_types.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@
1818
ind = pd.Index([1, 2.0])
1919

2020

21-
def test_is_array_like() -> None:
22-
check(assert_type(api.is_array_like(arr), bool), bool)
23-
check(assert_type(api.is_array_like(nparr), bool), bool)
24-
check(assert_type(api.is_array_like(dtylike), bool), bool)
25-
check(
26-
assert_type(api.is_array_like(dframe), bool),
27-
bool,
28-
)
29-
check(assert_type(api.is_array_like(ind), bool), bool)
30-
31-
3221
def test_is_bool() -> None:
3322
check(assert_type(api.is_bool(obj), bool), bool)
3423
check(assert_type(api.is_bool(nparr), bool), bool)

0 commit comments

Comments
 (0)