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

Serialization direct from proxy #35

Open sneakers-the-rat opened 1 month ago

sneakers-the-rat commented 1 month ago

Problem: sometimes pydantic loses the NDArray annotation and needs to be able to serialize directly from proxy objects, eg. when used as an Extra annotation or otherwise.

This PR ensures that all proxy objects can also roundtrip directly

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11414136288

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/numpydantic/interface/numpy.py 14 15 93.33%
src/numpydantic/serialization.py 12 13 92.31%
src/numpydantic/interface/hdf5.py 9 11 81.82%
<!-- Total: 47 51 92.16% -->
Totals Coverage Status
Change from base Build 11289927938: 0.1%
Covered Lines: 1521
Relevant Lines: 1545

💛 - Coveralls