Skip to content

Commit 0562636

Browse files
author
Sylvain MARIE
committed
1.1.0 changelog
1 parent 031a885 commit 0562636

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/changelog.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Changelog
22

3-
### 1.0.4 in progress - ...
3+
### 1.1.0 - @autofields and default values improvements
44

5-
**Misc**
6-
7-
- removed `makefun` usage in validate_n_convert.py : was overkill. Also fixed a few type hints.
5+
- **New `@autofields` decorator**. This decorator can be used to drastically reduce boilerplate code, similar to `pydantic` and `attrs`. This is compliant with python 2.7 and 3.5+ but is more useful when the type hints can be provided in class member annotations, so from 3.6+. Fixed [#55](https://github.com/smarie/python-pyfields/issues/55)
6+
7+
- **Default values are now validated/converted as normal values**. If the default value is provided in `default=<value>` or as a `default_factory=copy_value(<value>)`, this is done only **once per field**, to accelerate future access. If the value was converted on the way, the converted value is used to replace the default value, or the default value copied by the factory. Fixed [#57](https://github.com/smarie/python-pyfields/issues/57)
8+
9+
- **Misc**: removed `makefun` usage in `validate_n_convert.py` : was overkill. Also fixed a few type hints.
810

911
### 1.0.3 - bugfix
1012

0 commit comments

Comments
 (0)