Releases: smarie/python-makefun
1.12.0 - Refactoring and consistency improvement
- Fixed
partial
so that : - Removed
pytest-cases
dependency as it was a circular one. Fixed #68 - Now using
flake8
for qualimetry andgenbadge
for 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
v
in 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
@wraps
does 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
-
@wraps
now has new argumentsprepend_arg
andappend_arg
to quickly prepend or append a new parameter to a function signature. Fixes #65 -
add_signature_parameters
can now receive string parameter names in itsfirst
andlast
arguments. -
Improved generated docstring for
partial
with better support for preset positional args. -
partial
's behaviour is now aligned with the one infunctools.partial
in terms of arguments order and kind. Fixes #64 -
Bug fix: passing preset positional arguments to
partial
does 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`
@wraps
now offers aremove_params
argument 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
partial
can 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.
1.9.4 - removed six dependency
- Removed unused
six
dependency. Note: this version will ship in conda forge.
See documentation page for details.