Nptyping

Latest version: v2.5.0

Safety actively analyzes 724393 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

2.1.3

- Fixed typing issue with Pyright/Pylance that caused the message: "Literal" is not a class
- Fixed wrong error message when an invalid `Structure` was provided to `NDArray`.

2.1.2

- Fixed bug that caused MyPy to fail with the message: Value of type variable "_DType_co" of "ndarray" cannot be "floating[Any]"

2.1.1

- Fixed bug that numpy ndarrays were incorrectly instance checked against `RecArray`.

2.1.0

- Added `Structure` and "structure expressions" to support structured arrays.
- Added `RecArray`.

2.0.1

Thanks to [Jasha10](https://github.com/Jasha10) for this release.
- Added an improved default message for `assert_isinstance`.

Also some typos in README, in `test_mypy.py` and some style corrections.

2.0.0

Page 2 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.