mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 02:34:28 +00:00
changelog, bump version
This commit is contained in:
parent
dfcd8479f0
commit
2e7031c58d
2 changed files with 28 additions and 1 deletions
|
@ -4,6 +4,33 @@
|
|||
|
||||
### 1.6.*
|
||||
|
||||
#### 1.6.1 - 24-09-23 - Support Union Dtypes
|
||||
|
||||
It's now possible to do this, like it always should have been
|
||||
|
||||
```python
|
||||
class MyModel(BaseModel):
|
||||
array: NDArray[Any, int | float]
|
||||
```
|
||||
|
||||
**Features**
|
||||
- Support for Union Dtypes
|
||||
|
||||
**Structure**
|
||||
- New `validation` module containing `shape` and `dtype` convenience methods
|
||||
to declutter main namespace and make a grouping for related code
|
||||
- Rename all serialized arrays within a container dict to `value` to be able
|
||||
to identify them by convention and avoid long iteration - see perf below.
|
||||
|
||||
**Perf**
|
||||
- Avoid iterating over every item in an array trying to convert it to a path for
|
||||
a several order of magnitude perf improvement over `1.6.0` (oops)
|
||||
|
||||
**Docs**
|
||||
- Page for `dtypes`, mostly stubs at the moment, but more explicit documentation
|
||||
about what kind of dtypes we support.
|
||||
|
||||
|
||||
#### 1.6.0 - 24-09-23 - Roundtrip JSON Serialization
|
||||
|
||||
Roundtrip JSON serialization is here - with serialization to list of lists,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "numpydantic"
|
||||
version = "1.6.0"
|
||||
version = "1.6.1"
|
||||
description = "Type and shape validation and serialization for arbitrary array types in pydantic models"
|
||||
authors = [
|
||||
{name = "sneakers-the-rat", email = "sneakers-the-rat@protonmail.com"},
|
||||
|
|
Loading…
Reference in a new issue