Skip to content

Commit d956660

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

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/core/base.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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)