Skip to content

Commit b0cc407

Browse files
GH203 Fix lint
1 parent 283fc23 commit b0cc407

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ class DataFrame(NDFrame, OpsMixin):
10901090
dropna: _bool = ...,
10911091
) -> DataFrameGroupBy[Timestamp, Literal[True]]: ...
10921092
@overload
1093-
def groupby(
1093+
def groupby( # type: ignore[overload-overlap]
10941094
self,
10951095
by: DatetimeIndex,
10961096
axis: AxisIndex | NoDefault = ...,

tests/test_frame.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,27 +1043,6 @@ def test_types_groupby_as_index() -> None:
10431043
)
10441044

10451045

1046-
def test_types_groupby_as_index_timestamp() -> None:
1047-
"""Test groupby size with DatetimeIndex."""
1048-
idx = pd.DatetimeIndex(["2023-10-01", "2023-10-02", "2023-10-01"], name="date")
1049-
sub_idx = pd.DatetimeIndex(["2023-10-01", "2023-10-02"], name="date")
1050-
df = pd.DataFrame({"a": [1, 2, 3]}, index=idx)
1051-
check(
1052-
assert_type(
1053-
df.groupby(sub_idx, as_index=False).size(),
1054-
pd.DataFrame,
1055-
),
1056-
pd.DataFrame,
1057-
)
1058-
check(
1059-
assert_type(
1060-
df.groupby(sub_idx, as_index=True).size(),
1061-
"pd.Series[int]",
1062-
),
1063-
pd.Series,
1064-
)
1065-
1066-
10671046
def test_types_groupby_size() -> None:
10681047
"""Test for GH886."""
10691048
data = [

0 commit comments

Comments
 (0)