Skip to content

Commit 6ecbab9

Browse files
committed
Fix CI from PR 930
1 parent 8a41508 commit 6ecbab9

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

pandas-stubs/core/groupby/generic.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class DataFrameGroupBy(GroupBy[DataFrame], Generic[ByT]):
207207
) -> DataFrame: ...
208208
# error: overload 1 overlaps overload 2 because of different return types
209209
@overload
210-
def aggregate(self, func: Literal["size"]) -> Series: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
210+
def aggregate(self, func: Literal["size"]) -> Series: ... # type: ignore[overload-overlap]
211211
@overload
212212
def aggregate(
213213
self,

tests/test_plotting.py

+16-15
Original file line numberDiff line numberDiff line change
@@ -486,22 +486,23 @@ def test_plot_scatter(close_figures) -> None:
486486
),
487487
Axes,
488488
)
489-
check(
490-
assert_type(
491-
IRIS_DF.plot.scatter(x="SepalLength", y="SepalWidth", subplots=True),
492-
npt.NDArray[np.object_],
493-
),
494-
np.ndarray,
495-
)
496-
check(
497-
assert_type(
498-
IRIS_DF.plot(
499-
x="SepalLength", y="SepalWidth", subplots=True, kind="scatter"
489+
with pytest.warns(UserWarning):
490+
check(
491+
assert_type(
492+
IRIS_DF.plot.scatter(x="SepalLength", y="SepalWidth", subplots=True),
493+
npt.NDArray[np.object_],
500494
),
501-
npt.NDArray[np.object_],
502-
),
503-
np.ndarray,
504-
)
495+
np.ndarray,
496+
)
497+
check(
498+
assert_type(
499+
IRIS_DF.plot(
500+
x="SepalLength", y="SepalWidth", subplots=True, kind="scatter"
501+
),
502+
npt.NDArray[np.object_],
503+
),
504+
np.ndarray,
505+
)
505506

506507

507508
def test_plot_keywords(close_figures):

0 commit comments

Comments
 (0)