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 8583961 commit ce82b42Copy full SHA for ce82b42
pandas/core/indexes/numeric.py
@@ -106,7 +106,7 @@ def _can_hold_na(self) -> bool:
106
else:
107
return False
108
109
- _engine_types: dict[np.dtype, libindex.IndexEngine] = {
+ _engine_types: dict[np.dtype, type[libindex.IndexEngine]] = {
110
np.dtype(np.int8): libindex.Int8Engine,
111
np.dtype(np.int16): libindex.Int16Engine,
112
np.dtype(np.int32): libindex.Int32Engine,
@@ -120,7 +120,7 @@ def _can_hold_na(self) -> bool:
120
}
121
122
@property
123
- def _engine_type(self) -> libindex.IndexEngine:
+ def _engine_type(self):
124
return self._engine_types[self.dtype]
125
126
@cache_readonly
0 commit comments