Skip to content

nptyping dependency is troubled #496

@0-wiz-0

Description

@0-wiz-0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions