Skip to content

Commit 67bf2fa

Browse files
author
Sylvain MARIE
committed
Doc and 2.2.0 changelog
1 parent 872b070 commit 67bf2fa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/changelog.md

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

3+
### 2.2.0 - autoclass enhancements
4+
5+
- `@autoclass` now provides an `autofields` argument to apply `pyfields.autofields` automatically before applying autoclass. Fixes [#38](https://github.com/smarie/python-autoclass/issues/38)
6+
- `@autoclass` now removes private fields from the generated autodict representation by default. Fixes [#37](https://github.com/smarie/python-autoclass/issues/37)
7+
38
### 2.1.5 - python 2 packaging improvements
49

510
- setup improvements: set the universal wheel flag to 1, and cleaned up the setup.py. Fixes [#36](https://github.com/smarie/python-autoclass/issues/36)

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ House(name='my_house', nb_floors=200)
143143
>>> assert obj == {'name': 'my_house', 'nb_floors': 200} # comparison with dicts
144144
```
145145
146-
Note: this works with python 2.7, and 3.5+. See [`pyfields` documentation ](https://smarie.github.io/python-pyfields/) for details.
146+
Also, `@autoclass` now provides the possibility to set `autofields=True` to apply `pyfields.autofields` automatically before applying autoclass.
147+
148+
Note: all of this works with python 2.7, and 3.5+. See [`pyfields` documentation ](https://smarie.github.io/python-pyfields/) for details.
147149
148150
## 2. Type and Value validation
149151

0 commit comments

Comments
 (0)