Makefun

Latest version: v1.15.6

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 9

1.1.1

`inject_as_first_arg` was missing from `with_signature`, added it. Fixed [18](https://github.com/smarie/python-makefun/issues/18).

1.1.0

Now `create_function` and `with_signature` create the same kind of function than the handler. So if it is a generator, a generator-based coroutine, or an async coroutine, the generated function will adapt. Fixes [6](https://github.com/smarie/python-makefun/issues/6).

1.0.2

Now a string signature can be provided to `with_signature` without problem. Fixed [17](https://github.com/smarie/python-makefun/issues/17).

1.0.1

1.0.0

`with_signature` :

- now exposes all options of `create_function`. Fixed [12](https://github.com/smarie/python-makefun/issues/12).
- now correctly sets the module name by default. Fixes [13](https://github.com/smarie/python-makefun/issues/13)
- now accepts `None` as the new `func_signature` to declare that the signature is identical to the decorated function. This can be handy to just change the docstring or module name of a function for example. Fixes [15](https://github.com/smarie/python-makefun/issues/15)


`create_function` and `with_signature`:

- New `module_name` parameter to override the module name. Fixes [14](https://github.com/smarie/python-makefun/issues/14)
- the handler is now available as a field of the generated function (under `__func_impl__`). New `addhandler` parameter (default: True) controls this behaviour. Fixes [16](https://github.com/smarie/python-makefun/issues/16)


Misc:

- New goodie to manipulate signatures: `add_signature_parameters`.
- Fixed dependencies for documentation auto-build.

0.5.0

New helper function `remove_signature_parameters`.

Fixed issue with `with_signature` when argument is a `Signature`. Fixes [11](https://github.com/smarie/python-makefun/issues/11)

Page 8 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.