Skip to content

Commit 08d38a3

Browse files
authored
add ignore for new mypy error 'type-var' (#47766)
* add mypy 'type-var' ignore * return NDFrame instead of NDFrameT to fix type-var error * add # type: ignore[override] back
1 parent bdd9314 commit 08d38a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/resample.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __getattr__(self, attr: str):
205205

206206
# error: Signature of "obj" incompatible with supertype "BaseGroupBy"
207207
@property
208-
def obj(self) -> NDFrameT: # type: ignore[override]
208+
def obj(self) -> NDFrame: # type: ignore[override]
209209
# error: Incompatible return value type (got "Optional[Any]",
210210
# expected "NDFrameT")
211211
return self.groupby.obj # type: ignore[return-value]

0 commit comments

Comments
 (0)