Decopatch

Latest version: v1.4.10

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

Scan your dependencies

Page 2 of 3

1.4.1

Removed the clunky `Enum` for symbols. Back to a normal class, with a custom `__repr__`.

1.4.0

Now relying on `makefun>=1.5.0` where arg names changed a bit.

1.3.0

- We now provide predefined disambiguators `with_parenthesis` and `no_parenthesis`. Fixes [8](https://github.com/smarie/python-decopatch/issues/8).

- Fixed `KeyError` when the signature contains `**kwargs`. Fixes [9](https://github.com/smarie/python-decopatch/issues/9).

- Fixed issue when the signature only contains `**kwargs`. Fixes [10](https://github.com/smarie/python-decopatch/issues/10)

- Fixed static checker problem in PyCharm with the symbols (it came back when we moved to an Enum)

- Improved exception re-raising in flat mode.

- Minor: fixed init file.

1.2.1

Default-value symbols `DECORATED`, `WRAPPED`, `F_ARGS` and `F_KWARGS` now have a nicer representation. Fixes [7](https://github.com/smarie/python-decopatch/issues/7).

When a symbol is used in a signature where it can not be safely injected as keyword argument, an `InvalidSignatureError` is now raised. Fixes [6](https://github.com/smarie/python-decopatch/issues/6).

1.2.0

`makefun>=1.4.0` is now required, as it fixes a major issue: [5](https://github.com/smarie/python-decopatch/issues/5)

1.1.1

Default-value symbols `DECORATED`, `WRAPPED`, `F_ARGS` and `F_KWARGS` are now objects and not classes any more. This prevents IDE to flag the corresponding argument as being misused (not iterable...). Fixes [4](https://github.com/smarie/python-decopatch/issues/4).

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.