Skip to content

Commit b09712c

Browse files
authored
Remove redundant/deprecated np.float_ use to fix NumPy 2.0 compat (#60)
1 parent f3946b6 commit b09712c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

elasticsearch_serverless/serializer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def _attempt_serialize_numpy(data: Any) -> Tuple[bool, Any]:
157157
elif isinstance(
158158
data,
159159
(
160-
np.float_,
161160
np.float16,
162161
np.float32,
163162
np.float64,

test_elasticsearch_serverless/test_serializer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def test_serializes_numpy_integers():
9090
def test_serializes_numpy_floats():
9191
ser = JSONSerializer()
9292
for np_type in (
93-
np.float_,
9493
np.float32,
9594
np.float64,
9695
):

0 commit comments

Comments
 (0)