Releases: smarie/python-autoclass
2.2.0 - autoclass enhancements
@autoclassnow provides anautofieldsargument to applypyfields.autofieldsautomatically before applying autoclass. Fixes #38@autoclassnow removes private fields from the generated autodict representation by default. Fixes #37
See documentation page for details.
2.1.5 - python 2 packaging improvements
- setup improvements: set the universal wheel flag to 1, and cleaned up the setup.py. Fixes #36
See documentation page for details.
2.1.4 - Packaging improvements
setup.pyimprovements: now includingpy.typed, excludingtestsfolder, and usingzip_safe=False
See documentation page for details.
2.1.2 - bugfix
Fixed bug happening when pyfields is not installed. Fixed #33.
See documentation page for details.
2.1.1 - `pyproject.toml`
Added pyproject.toml.
See documentation page for details.
2.1.0 - `@autoeq`
Features
- Added independent
@autoeq, supported in@autoclassand automatically activated whenautodict=False. Fixed #32.
Bugfixes
-
Fixed
@autoreprwhenonly_known_fieldsisFalse: now property names are correctly used instead of the private names. -
Fixed
@autodict's generated__eq__method: when the other object is a dictionary a direct comparison is now done before trying super.
See documentation page for details.
2.0.0 - `pyfields` support + major refactoring
Features
-
default string representation in
@autodictis now more readable. Legacy representation is still available through a parameter. Fixed #29. -
pyfieldscan now be used as the source for the list of attributes, in@autohash,@autodict, and@autoclass. Fixes #28 -
new
@autoreprdecorator. Previously this feature was only available through@autodict, it can now be used without it.autorepris supported in@autoclass, and if users setautodict=Falseby default it will be enabled. Fixed Fixed #30 and #31.
Misc / bugfixes
-
Major refactoring: more readable and maintainable code.
-
Fixed
@autodictbehaviour when the list wasvars(self)and used together with@autoprops: with some options the private names were appearing and with others the public property names were appearing. Now the public property names always appear if they exist.
See documentation page for details.
1.18.0 - `@autoslots`
New @autoslots feature, that can also be used from @autoclass by setting (autoslots=True). Fixes #9
See documentation page for details.
1.17.2 - Added `__version__` attribute
Added __version__ attribute at package level.
See documentation page for details.
1.17.1 - Fixed bug with latest `valid8`
- Fixed
ValidationErrorhappening in all use cases. Fixed #25.
See documentation page for details.