Skip to content

Commit

Permalink
Doc and 2.2.0 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Jun 23, 2020
1 parent 872b070 commit 67bf2fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### 2.2.0 - autoclass enhancements

- `@autoclass` now provides an `autofields` argument to apply `pyfields.autofields` automatically before applying autoclass. Fixes [#38](https://github.com/smarie/python-autoclass/issues/38)
- `@autoclass` now removes private fields from the generated autodict representation by default. Fixes [#37](https://github.com/smarie/python-autoclass/issues/37)

### 2.1.5 - python 2 packaging improvements

- 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)
Expand Down
4 changes: 3 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ House(name='my_house', nb_floors=200)
>>> assert obj == {'name': 'my_house', 'nb_floors': 200} # comparison with dicts
```
Note: this works with python 2.7, and 3.5+. See [`pyfields` documentation ](https://smarie.github.io/python-pyfields/) for details.
Also, `@autoclass` now provides the possibility to set `autofields=True` to apply `pyfields.autofields` automatically before applying autoclass.
Note: all of this works with python 2.7, and 3.5+. See [`pyfields` documentation ](https://smarie.github.io/python-pyfields/) for details.
## 2. Type and Value validation
Expand Down

0 comments on commit 67bf2fa

Please sign in to comment.