Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated numpy.float_ and update NumPy/Pandas imports #762

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading