Skip to content

Commit 2b61d4f

Browse files
committed
TYP: change to FrameOrSeriesUnion
1 parent eb04519 commit 2b61d4f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pandas/core/base.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import numpy as np
2222

2323
import pandas._libs.lib as lib
24-
from pandas._typing import Dtype, DtypeObj, IndexLabel
24+
from pandas._typing import Dtype, DtypeObj, IndexLabel, FrameOrSeriesUnion
2525
from pandas.compat import PYPY
2626
from pandas.compat.numpy import function as nv
2727
from pandas.errors import AbstractMethodError
@@ -154,14 +154,8 @@ class SelectionMixin:
154154
Sub-classes need to define: obj, exclusions
155155
"""
156156

157-
obj: Any # TODO: refine this type, should NOT be Any
158-
"""Target object for the selection and aggregation."""
159-
# GH 38239
160-
# TODO obj here must be typed as FrameOrSeriesUnion,
161-
# however this creates multiple mypy errors elsewhere.
162-
# Those have to be addressed in a separate PR.
157+
obj: FrameOrSeriesUnion
163158
exclusions: Set[Hashable]
164-
"""Columns to exclude."""
165159

166160
_selection: Optional[IndexLabel] = None
167161
_internal_names = ["_cache", "__setstate__"]

0 commit comments

Comments
 (0)