File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 21
21
import numpy as np
22
22
23
23
import pandas ._libs .lib as lib
24
- from pandas ._typing import Dtype , DtypeObj , IndexLabel
24
+ from pandas ._typing import Dtype , DtypeObj , IndexLabel , FrameOrSeriesUnion
25
25
from pandas .compat import PYPY
26
26
from pandas .compat .numpy import function as nv
27
27
from pandas .errors import AbstractMethodError
@@ -154,14 +154,8 @@ class SelectionMixin:
154
154
Sub-classes need to define: obj, exclusions
155
155
"""
156
156
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
163
158
exclusions : Set [Hashable ]
164
- """Columns to exclude."""
165
159
166
160
_selection : Optional [IndexLabel ] = None
167
161
_internal_names = ["_cache" , "__setstate__" ]
You can’t perform that action at this time.
0 commit comments