Skip to content

Commit b797c06

Browse files
simonjayhawkinsKevin D Smith
authored and
Kevin D Smith
committed
TYP: check_untyped_defs core.groupby.ops (pandas-dev#36921)
1 parent 332d4c7 commit b797c06

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/core/groupby/ops.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
import collections
10-
from typing import Dict, Hashable, List, Optional, Sequence, Tuple, Type
10+
from typing import Dict, Generic, Hashable, List, Optional, Sequence, Tuple, Type
1111

1212
import numpy as np
1313

@@ -866,7 +866,7 @@ def _is_indexed_like(obj, axes, axis: int) -> bool:
866866
# Splitting / application
867867

868868

869-
class DataSplitter:
869+
class DataSplitter(Generic[FrameOrSeries]):
870870
def __init__(self, data: FrameOrSeries, labels, ngroups: int, axis: int = 0):
871871
self.data = data
872872
self.labels = ensure_int64(labels)

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ check_untyped_defs=False
172172
[mypy-pandas.core.groupby.grouper]
173173
check_untyped_defs=False
174174

175-
[mypy-pandas.core.groupby.ops]
176-
check_untyped_defs=False
177-
178175
[mypy-pandas.core.indexes.base]
179176
check_untyped_defs=False
180177

0 commit comments

Comments
 (0)