Skip to content

Commit 83251d1

Browse files
authored
[Backport 7.17] Remove redundant/deprecated np.float_ use to fix NumPy 2.0 compat (#2647)
1 parent aa52a5a commit 83251d1

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
@@ -199,7 +199,6 @@ def _attempt_serialize_numpy(data):
199199
elif isinstance(
200200
data,
201201
(
202-
np.float_,
203202
np.float16,
204203
np.float32,
205204
np.float64,

test_elasticsearch/test_serializer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def test_serializes_numpy_floats(self):
9696

9797
ser = JSONSerializer()
9898
for np_type in (
99-
np.float_,
10099
np.float32,
101100
np.float64,
102101
):

0 commit comments

Comments
 (0)