Skip to content

Commit e58da38

Browse files
committed
fix pyupgrade
1 parent 6974276 commit e58da38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/indexes/numeric.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import (
44
Callable,
55
Hashable,
6-
Optional,
76
)
87
import warnings
98

@@ -57,7 +56,7 @@ class NumericIndex(Index):
5756
_is_numeric_dtype = True
5857
_can_hold_strings = False
5958

60-
def __new__(cls, data=None, dtype: Optional[Dtype] = None, copy=False, name=None):
59+
def __new__(cls, data=None, dtype: Dtype | None = None, copy=False, name=None):
6160
name = maybe_extract_name(name, data, cls)
6261

6362
subarr = cls._ensure_array(data, dtype, copy)

0 commit comments

Comments
 (0)