p2p-ld / numpydantic

Type annotations for specifying, validating, and serializing arrays with arbitrary backends in Pydantic (and beyond)
https://numpydantic.readthedocs.io/
MIT License
66 stars 1 forks source link

Vendor nptyping #3

Closed sneakers-the-rat closed 3 months ago

sneakers-the-rat commented 3 months ago

Fix: https://github.com/p2p-ld/numpydantic/issues/2

nptyping is no longer maintained, unfortunately, and it pins numpy < 2 (and has a bunch of other problems with being out of date that we have had to monkeypatch around.

This PR

We will continue to replace our usage of even the vendored nptyping until it's gone, since TypeVarTuple is a thing now, and we don't need to have string-based shape expressions and all the wonkiness that comes from the metaclass system there (with love and respect to the maintainer of nptyping, if they ever read this)