Skip to content

Commit aed94d2

Browse files
authored
Remove redundant/deprecated np.float_ use to fix NumPy 2.0 compat (#2551)
1 parent f32878e commit aed94d2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

elasticsearch/serializer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def _attempt_serialize_numpy(data: Any) -> Tuple[bool, Any]:
171171
elif isinstance(
172172
data,
173173
(
174-
np.float_,
175174
np.float16,
176175
np.float32,
177176
np.float64,

test_elasticsearch/test_serializer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def test_serializes_numpy_integers(json_serializer):
8989
@requires_numpy_and_pandas
9090
def test_serializes_numpy_floats(json_serializer):
9191
for np_type in (
92-
np.float_,
9392
np.float32,
9493
np.float64,
9594
):

0 commit comments

Comments
 (0)