changelog

This commit is contained in:
sneakers-the-rat 2024-12-13 18:12:00 -08:00
parent 616785e6ed
commit 4fe3a72db5
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -8,6 +8,11 @@
An additional check was added for presence of `__name__` when embedding.
- `NDArray` types were incorrectly cached s.t. pipe-union dtypes were considered equivalent to `Union[]`
dtypes. An additional tuple with the type of the args was added to the cache key to disambiguate them.
- [#38](https://github.com/p2p-ld/numpydantic/issues/38), [#40](https://github.com/p2p-ld/numpydantic/pull/40) -
- Tuple dtypes were naively checked by just testing for whether the given dtype was contained by the tuple,
ignoring special cases like string type checking. Tuple dtypes are now checked recursively with the same
logic as all other type checking.
- Zarr treats `dtype=str` as numpy type `O` - added special case when validating from JSON to cast to `np.str_`
**Testing**
- [#39](https://github.com/p2p-ld/numpydantic/pull/39) - Test that all combinations of shapes, dtypes, and interfaces
@ -15,6 +20,8 @@
- [#39](https://github.com/p2p-ld/numpydantic/pull/39) - Add python 3.13 to the testing matrix.
- [#39](https://github.com/p2p-ld/numpydantic/pull/39) - Add an additional `marks` field to ValidationCase
for finer-grained control over running tests.
- [#40](https://github.com/p2p-ld/numpydantic/pull/40) - Explicitly test for `np.str_` annotation dtypes alone and
in tuples.
## 1.*