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

nptyping dependency is troubled #496

Open
0-wiz-0 opened this issue Oct 19, 2024 · 1 comment
Open

nptyping dependency is troubled #496

0-wiz-0 opened this issue Oct 19, 2024 · 1 comment

Comments

@0-wiz-0
Copy link
Contributor

0-wiz-0 commented Oct 19, 2024

nptyping hasn't been updated for numpy 2, which makes the self tests fail with:

tests/test_sphinx_autodoc_typehints.py:54: in <module>
    import nptyping
/usr/pkg/lib/python3.12/site-packages/nptyping/__init__.py:32: in <module>
    from nptyping.ndarray import NDArray
/usr/pkg/lib/python3.12/site-packages/nptyping/ndarray.py:40: in <module>
    from nptyping.shape import Shape
/usr/pkg/lib/python3.12/site-packages/nptyping/shape.py:29: in <module>
    from nptyping.shape_expression import (
/usr/pkg/lib/python3.12/site-packages/nptyping/shape_expression.py:36: in <module>
    from nptyping.typing_ import ShapeExpression, ShapeTuple
/usr/pkg/lib/python3.12/site-packages/nptyping/typing_.py:51: in <module>
    Bool8 = np.bool8
/usr/pkg/lib/python3.12/site-packages/numpy/__init__.py:414: in __getattr__
    raise AttributeError("module {!r} has no attribute "
E   AttributeError: module 'numpy' has no attribute 'bool8'. Did you mean: 'bool'?

There's a bug report open at nptyping in ramonhagenaars/nptyping#124 with no reply.
At least one other project has switched to numpy.typing: mhe/pynrrd#154

@gaborbernat
Copy link
Member

PR Welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants