Skip to content

Commit 84be9f3

Browse files
author
Sylvain MARIE
committed
0.14.0 changelog
1 parent 1016505 commit 84be9f3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/changelog.md

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

3+
### 0.14.0 - helpers, bugfix, and ancestor-first option in init makers
4+
5+
**API**
6+
7+
- new helper methods `get_field`, `yield_fields`, `has_fields` and `get_fields` (new name of `collect_all_fields`) so that other libraries such as `autoclass` can easily access the various information. `fix_fields` removed. Fixed [#48](https://github.com/smarie/python-pyfields/issues/48)
8+
9+
- New `ancestor_fields_first` option in all the `__init__` makers (`make_init` and `@init_fields`). Fixed [#50](https://github.com/smarie/python-pyfields/issues/50)
10+
11+
**Bugfixes**
12+
13+
- Bugfixes in all the `__init__` makers (`make_init` and `@init_fields`):
14+
15+
- bugfix in case of inheritance with override: [#49](https://github.com/smarie/python-pyfields/issues/49)
16+
17+
- the argument order used for fields initialization (inside the generated init method body) was sometimes incorrect. This would trigger a bug when one field was requiring another one to initialize.
18+
19+
- when the list of fields received by `InitDescriptor` was an empty tuple and not `None`, the constructor was not created properly
20+
321
### 0.13.0 - `nonable` fields
422

523
- Fields can now be `nonable`, so as to bypass type and value validation when `None` is received. Fixed [#44](https://github.com/smarie/python-pyfields/issues/44)

0 commit comments

Comments
 (0)