Skip to content

Commit ced6479

Browse files
committed
mypy fixup
1 parent f1209d5 commit ced6479

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/resample.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,8 +1192,7 @@ def _gotitem(self, key, ndim, subset=None):
11921192
"""
11931193
# create a new object to prevent aliasing
11941194
if subset is None:
1195-
# error: "GotItemMixin" has no attribute "obj"
1196-
subset = self.obj # type: ignore[attr-defined]
1195+
subset = self.obj
11971196

11981197
# we need to make a shallow copy of ourselves
11991198
# with the same groupby

0 commit comments

Comments
 (0)