Skip to content

Commit 62bf28d

Browse files
TYP: Fix mypy build errors in core modules
1 parent 7e3927a commit 62bf28d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5571,6 +5571,7 @@ def set_axis(
55715571
klass=_shared_doc_kwargs["klass"],
55725572
optional_reindex=_shared_doc_kwargs["optional_reindex"],
55735573
)
5574+
# error: Cannot determine type of 'reindex'
55745575
def reindex(
55755576
self,
55765577
labels=None,
@@ -6089,6 +6090,7 @@ def _replace_columnwise(
60896090
return res.__finalize__(self)
60906091

60916092
@doc(NDFrame.shift, klass=_shared_doc_kwargs["klass"])
6093+
# error: Cannot determine type of 'shift'
60926094
def shift(
60936095
self,
60946096
periods: int | Sequence[int] = 1,

pandas/core/indexes/multi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ def f(dtype) -> bool:
14361436
return any(f(level.dtype) for level in self.levels)
14371437

14381438
# Cannot determine type of "memory_usage"
1439-
@doc(Index.memory_usage)
1439+
@doc(Index.memory_usage) # type: ignore[has-type]
14401440
def memory_usage(self, deep: bool = False) -> int:
14411441
# we are overwriting our base class to avoid
14421442
# computing .values here which could materialize

0 commit comments

Comments
 (0)