From 67bf2fa312332d40e79cc845be14713a298b2d2b Mon Sep 17 00:00:00 2001 From: Sylvain MARIE Date: Tue, 23 Jun 2020 10:05:41 +0200 Subject: [PATCH] Doc and 2.2.0 changelog --- docs/changelog.md | 5 +++++ docs/index.md | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 991ed99..4936914 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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) diff --git a/docs/index.md b/docs/index.md index 658743b..861b45e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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