Skip to content

0.11.0 - Better initialization orders in generated `__init__`

Compare
Choose a tag to compare
@smarie smarie released this 18 Oct 09:38
· 153 commits to main since this release

Fixed fields initialization order in generated constructor methods:

  • the order is now the same than the order of appearance in the class (and not reversed as it was). Fixed #36.
  • the above is true, even in python < 3.6. Fixed #38
  • the order now takes into account first the ancestors and then the subclasses, for the most intuitive behaviour. Fixed #37.

See documentation page for details.