Releases: smarie/python-makefun
1.12.1 - Bugfix
- Fixed
TypeErrorwhen afuncattribute is present on the function provided tocreate_function. Fixed #76
See documentation page for details.
1.12.0 - Refactoring and consistency improvement
- Fixed
partialso that : - Removed
pytest-casesdependency as it was a circular one. Fixed #68 - Now using
flake8for qualimetry andgenbadgefor badges. Fixed #71 - Restructured project so that tests are truly independent, to ease rpm/apt/etc. packaging. Fixed #69
See documentation page for details.
1.11.3 - bugfix with default values representable but not evaluable
- When a default value
vin a signature is representable but itseval(repr(v))raises an exception, created signatures would raise an exception instead of automatically protecting the symbol. PR #67 by gcalmettes.
See documentation page for details.
1.11.2 - bugfix with chained `@wraps`
- Fixed issue where
@wrapsdoes not remove the__wrapped__attribute when it wraps an already-wrapped function, and modifies its signature. Fixes #66
See documentation page for details.
1.11.1 - bugfix
- Fixed a bug happening when trying to generate a function where
float('inf')is used as a default value. Fixes #63.
See documentation page for details.
1.11.0 - `partial` bugfixes and improvements + new `wraps` parameters
-
@wrapsnow has new argumentsprepend_argandappend_argto quickly prepend or append a new parameter to a function signature. Fixes #65 -
add_signature_parameterscan now receive string parameter names in itsfirstandlastarguments. -
Improved generated docstring for
partialwith better support for preset positional args. -
partial's behaviour is now aligned with the one infunctools.partialin terms of arguments order and kind. Fixes #64 -
Bug fix: passing preset positional arguments to
partialdoes not wipe out the rest of the signature any more. Fixes #62
See documentation page for details.
1.10.2 - Github actions test
- Technical release: validation of the new github actions workflow.
See documentation page for details.
1.10.1 - Github actions migration
- Technical release: validation of the new github actions workflow for PyPi deployment.
See documentation page for details.
1.10.0 - Removing arguments easily in `@wraps`
@wrapsnow offers aremove_paramsargument allowing one to remove an argument from the exposed signature, typically to create and inject it in the wrapper. Fixes #60
See documentation page for details.
1.9.5 - Bugfix with `partial` when f has no args
partialcan now be used to create a copy of a function with no args. FixedValueError: Cannot preset 0 positional args, function case_second has only 0 args.. Fixed #59
See documentation page for details.