Releases: petee-d/stereotype
Releases · petee-d/stereotype
v1.5.4
v1.5.3
v1.5.2
v1.5.1
v1.5.0
Small features:
- Added
get
and__getitem__
(model["field"]
) toModel
- Can be used to retrieve fields (incl. serializable), properties and explicit slots
- Explicit
AnyField
allows using any type annotation, not justtyping.Any
Fixes:
- Fixed
repr
for models withAnyField
v1.4.3
v1.4.2
Changes:
- Improved Python 3.10 support
- New Union (
|
) andlist
&dict
annotations now work in Python 3.10+ withfrom __future__ import annotations
- New Union (
- Support of Schematics 2 for
SchematicsModelField
(Schematics 1 doesn't work in Python 3.10+)- Note Schematics 2 doesn't seem to support deep copy by default
Fixes:
- Fixed being unable to inherit from non-Model classes
- Fixed inheritance of abstract Models from non-abstract Models
- Fixed field validator callbacks not executing within compound field items
v1.4.1
v1.4.0
Features:
- Added
Model.fields_for_role
class method for inspectingField
objects usually displayed by a role
Changes:
- Added external documentation using sphinx, simplified README.md
- Added contribution guideline, Makefile and other developer experience improvements
- Started raising
ConfigurationError
if aModel
attribute is an explicitField
but lacks a type annotation