Skip to content

1.11.0 - `partial` bugfixes and improvements + new `wraps` parameters

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Mar 10:46
· 154 commits to main since this release
  • @wraps now has new arguments prepend_arg and append_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 its first and last arguments.

  • Improved generated docstring for partial with better support for preset positional args.

  • partial's behaviour is now aligned with the one in functools.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.