Skip to content

Commit a3eee5b

Browse files
authored
CLN: NumericIndex clean-up (#42693)
1 parent 9d6f8fe commit a3eee5b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pandas/core/indexes/numeric.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,21 @@
8080

8181

8282
class NumericIndex(Index):
83-
"""
84-
Provide numeric type operations.
85-
86-
This is an abstract class.
87-
"""
88-
8983
_index_descr_args = {
9084
"klass": "NumericIndex",
9185
"ltype": "integer or float",
9286
"dtype": "inferred",
9387
"extra": "",
9488
}
95-
_values: np.ndarray
96-
_default_dtype: np.dtype
97-
_dtype_validation_metadata: tuple[Callable[..., bool], str]
89+
__doc__ = _num_index_shared_docs["class_descr"] % _index_descr_args
9890

91+
_typ = "numericindex"
92+
_values: np.ndarray
93+
_default_dtype: np.dtype | None = None
94+
_dtype_validation_metadata: tuple[Callable[..., bool], str] = (
95+
is_numeric_dtype,
96+
"numeric type",
97+
)
9998
_is_numeric_dtype = True
10099
_can_hold_strings = False
101100

0 commit comments

Comments
 (0)