Skip to content

Commit

Permalink
[Backport 7.17] Remove redundant/deprecated np.float_ use to fix NumP…
Browse files Browse the repository at this point in the history
…y 2.0 compat (#2647)
  • Loading branch information
alvarogf97 authored Aug 28, 2024
1 parent aa52a5a commit 83251d1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion elasticsearch/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ def _attempt_serialize_numpy(data):
elif isinstance(
data,
(
np.float_,
np.float16,
np.float32,
np.float64,
Expand Down
1 change: 0 additions & 1 deletion test_elasticsearch/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def test_serializes_numpy_floats(self):

ser = JSONSerializer()
for np_type in (
np.float_,
np.float32,
np.float64,
):
Expand Down

0 comments on commit 83251d1

Please sign in to comment.