Skip to content

Commit 5605d76

Browse files
Terji PetersenTerji Petersen
Terji Petersen
authored and
Terji Petersen
committed
fix pre-commit stuff
1 parent 8a84cab commit 5605d76

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

pandas/core/indexes/numeric.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,16 +365,10 @@ class TempBaseIndex(NumericIndex):
365365
@classmethod
366366
def _dtype_to_subclass(cls, dtype: DtypeObj):
367367
if is_integer_dtype(dtype):
368-
from pandas.core.api import Int64Index
369-
370368
return Int64Index
371369
elif is_unsigned_integer_dtype(dtype):
372-
from pandas.core.api import UInt64Index
373-
374370
return UInt64Index
375371
elif is_float_dtype(dtype):
376-
from pandas.core.api import Float64Index
377-
378372
return Float64Index
379373
else:
380374
return super()._dtype_to_subclass(dtype)

pandas/tests/arrays/interval/test_interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_repr():
167167
expected = (
168168
"<IntervalArray>\n"
169169
"[(0, 1], (1, 2]]\n"
170-
f"Length: 2, dtype: interval[int64, right]"
170+
"Length: 2, dtype: interval[int64, right]"
171171
)
172172
assert result == expected
173173

pandas/tests/indexing/test_loc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ def test_loc_getitem_list_with_fail(self):
505505
s.loc[[2]]
506506

507507
msg = (
508-
f"\"None of [NumericIndex([3], dtype='{np.intp().dtype}')] "
509-
"are in the [index]\""
508+
f"\"None of [NumericIndex([3], dtype='{np.intp().dtype}')] "
509+
'are in the [index]"'
510510
)
511511
with pytest.raises(KeyError, match=re.escape(msg)):
512512
s.loc[[3]]

0 commit comments

Comments
 (0)