Skip to content

Commit d5ec237

Browse files
committed
misc
1 parent bf4dd4a commit d5ec237

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

pandas-stubs/_testing/__init__.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ from typing import (
1111
)
1212
import warnings
1313

14-
from matplotlib.artist import Artist
1514
from pandas import (
1615
Categorical,
1716
DataFrame,
@@ -60,9 +59,6 @@ def assert_class_equal(
6059
def assert_attr_equal(
6160
attr: str, left: object, right: object, obj: str = "Attributes"
6261
) -> None: ...
63-
def assert_is_valid_plot_return_object(
64-
objs: Series | np_ndarray | Artist | tuple | dict,
65-
) -> None: ...
6662
def assert_is_sorted(seq: AnyArrayLike) -> None: ...
6763
def assert_categorical_equal(
6864
left: Categorical,

pandas-stubs/core/algorithms.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def unique(values: PeriodIndex) -> PeriodIndex: ...
4242
# switch to DatetimeIndex after Pandas 3.0
4343
def unique(values: DatetimeIndex) -> np_1darray_dt | DatetimeIndex: ...
4444
@overload
45-
# switch to DatetimeIndex after Pandas 3.0
45+
# switch to TimedeltaIndex after Pandas 3.0
4646
def unique(values: TimedeltaIndex) -> np_1darray_td: ...
4747
@overload
4848
# switch to Index[int] after Pandas 3.0

pandas-stubs/core/reshape/tile.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def qcut(
225225
retbins: Literal[True],
226226
precision: int = 3,
227227
duplicates: Literal["raise", "drop"] = "raise",
228-
# double when there are nan's
228+
# float when there are nan's
229229
) -> tuple[np_1darray_intp | np_1darray_float, np_1darray_float]: ...
230230
@overload
231231
def qcut(

tests/test_pandas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ def test_index_unqiue() -> None:
967967
)
968968
check(
969969
assert_type(pd.unique(tdi), np_1darray_td),
970-
np_1darray if PD_LTE_23 else pd.Index,
970+
np_1darray if PD_LTE_23 else pd.TimedeltaIndex,
971971
)
972972
check(
973973
assert_type(pd.unique(mi), np_ndarray),

0 commit comments

Comments
 (0)