Skip to content

Commit 399dbb7

Browse files
committed
Revert "Fix CI from PR 930"
This reverts commit 6ecbab9.
1 parent 8cf92b9 commit 399dbb7

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

pandas-stubs/core/groupby/generic.pyi

Lines changed: 1 addition & 1 deletion
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]
210+
def aggregate(self, func: Literal["size"]) -> Series: ... # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
211211
@overload
212212
def aggregate(
213213
self,

tests/test_plotting.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -486,23 +486,22 @@ def test_plot_scatter(close_figures) -> None:
486486
),
487487
Axes,
488488
)
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_],
494-
),
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_],
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"
503500
),
504-
np.ndarray,
505-
)
501+
npt.NDArray[np.object_],
502+
),
503+
np.ndarray,
504+
)
506505

507506

508507
def test_plot_keywords(close_figures):

0 commit comments

Comments
 (0)