Skip to content

Commit

Permalink
Removed deprecated numpy.float_ and update NumPy/Pandas imports (open…
Browse files Browse the repository at this point in the history
…search-project#762)

Signed-off-by: saimedhi <saimedhi@amazon.com>
  • Loading branch information
saimedhi authored and dblock committed Aug 15, 2024
1 parent 2f54292 commit 98fcea8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased]
### Added
### Changed
- Removed deprecated `numpy.float_` and update NumPy/Pandas imports ([#762](https://github.com/opensearch-project/opensearch-py/pull/762))
### Deprecated
### Removed
### Fixed
Expand Down
5 changes: 2 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ deepmerge
Events
setuptools

# No wheels for Python 3.10 yet!
numpy; python_version<"3.10"
pandas; python_version<"3.10"
numpy; python_version<="3.12"
pandas; python_version<="3.12"

pyyaml>=5.4

Expand Down
1 change: 0 additions & 1 deletion opensearchpy/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def default(self, data: Any) -> Any:
elif isinstance(
data,
(
np.float_,
np.float16,
np.float32,
np.float64,
Expand Down
1 change: 0 additions & 1 deletion test_opensearchpy/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def test_serializes_numpy_floats(self) -> None:

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

0 comments on commit 98fcea8

Please sign in to comment.