Skip to content

Commit

Permalink
Add support for NumPy v2 (#30)
Browse files Browse the repository at this point in the history
* Add explicit support for NumPy v2

* Change `np.float_` for `np.float64`
  • Loading branch information
bryant1410 authored Jun 18, 2024
1 parent 131f1ba commit 652fd45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion krippendorff/krippendorff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import numpy as np
import numpy.typing as npt

DEFAULT_DTYPE = np.float_
DEFAULT_DTYPE = np.float64


ValueScalarType = TypeVar("ValueScalarType", bound=np.generic)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.9,<3.13" # Specify an upper limit, otherwise newer NumPy versions can't be installed.
numpy = "^1.21" # For NumPy Typing.
numpy = ">=1.21" # For NumPy Typing.

[tool.poetry.group.test]
optional = true
Expand Down

0 comments on commit 652fd45

Please sign in to comment.