mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-12 17:54:29 +00:00
Merge branch 'feat-instancecheck'
This commit is contained in:
commit
9a891fdea6
3 changed files with 18 additions and 1 deletions
16
docs/changelog.md
Normal file
16
docs/changelog.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Changelog
|
||||
|
||||
# 1.*
|
||||
|
||||
## 1.1.0 - 24-05-24 - Instance Checking
|
||||
|
||||
https://github.com/p2p-ld/numpydantic/pull/1
|
||||
|
||||
Features:
|
||||
- Add `__instancecheck__` method to NDArrayMeta to support `isinstance()` validation
|
||||
- Add finer grained errors and parent classes for validation exceptions
|
||||
- Add fast matching mode to {meth}`.Interface.match` that returns the first match without checking for duplicate matches
|
||||
|
||||
Bugfix:
|
||||
- get all interface classes recursively, instead of just first-layer children
|
||||
- fix stubfile generation which badly handled `typing` imports.
|
|
@ -475,6 +475,7 @@ design
|
|||
syntax
|
||||
interfaces
|
||||
todo
|
||||
changelog
|
||||
```
|
||||
|
||||
```{toctree}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "numpydantic"
|
||||
version = "1.0.0"
|
||||
version = "1.1.0"
|
||||
description = "Type and shape validation and serialization for numpy arrays in pydantic models"
|
||||
authors = [
|
||||
{name = "sneakers-the-rat", email = "sneakers-the-rat@protonmail.com"},
|
||||
|
|
Loading…
Reference in a new issue