We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3709a commit 6d672baCopy full SHA for 6d672ba
pandas/core/indexes/numeric.py
@@ -107,7 +107,7 @@ def _can_hold_na(self) -> bool:
107
else:
108
return False
109
110
- _engine_types: dict[np.dtype, libindex.IndexEngine] = {
+ _engine_types: dict[np.dtype, type[libindex.IndexEngine]] = {
111
np.dtype(np.int8): libindex.Int8Engine,
112
np.dtype(np.int16): libindex.Int16Engine,
113
np.dtype(np.int32): libindex.Int32Engine,
@@ -121,7 +121,7 @@ def _can_hold_na(self) -> bool:
121
}
122
123
@property
124
- def _engine_type(self) -> libindex.IndexEngine:
+ def _engine_type(self):
125
return self._engine_types[self.dtype]
126
127
@cache_readonly
0 commit comments