Skip to content

Commit 7acb89a

Browse files
committed
Fixed reference to types.Tuple that should have been to typing.Tuple
1 parent 46cc909 commit 7acb89a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/groupby/groupby.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class providing the base-class of operations.
1212
import datetime
1313
from functools import partial, wraps
1414
import types
15-
from typing import Optional, Type
15+
from typing import Optional, Type, Tuple
1616
import warnings
1717

1818
import numpy as np
@@ -1040,7 +1040,7 @@ def _bool_agg(self, val_test, skipna):
10401040
Shared func to call any / all Cython GroupBy implementations.
10411041
"""
10421042

1043-
def objs_to_bool(vals: np.ndarray) -> types.Tuple[np.ndarray, Type]:
1043+
def objs_to_bool(vals: np.ndarray) -> Tuple[np.ndarray, Type]:
10441044
if is_object_dtype(vals):
10451045
vals = np.array([bool(x) for x in vals])
10461046
else:
@@ -1737,7 +1737,7 @@ def quantile(self, q=0.5, interpolation='linear'):
17371737
"""
17381738

17391739
def pre_processor(vals: np.ndarray) -> \
1740-
types.Tuple[np.ndarray, Optional[Type]]:
1740+
Tuple[np.ndarray, Optional[Type]]:
17411741
if is_object_dtype(vals):
17421742
raise TypeError("'quantile' cannot be performed against "
17431743
"'object' dtypes!")

0 commit comments

Comments
 (0)