wrapt
wrapt copied to clipboard
A Python module for decorators, wrappers and monkey patching.
I needed to wrap a pytest fixture (not test!) to let it only run once when running in xdist. For that I needed a adapter, which added a required argument...
According to [the documentation](https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files), the`license` field in `pyproject.toml` should be a SPDX license expression, and it's the `license-files` field that should contain paths to the license files. In your case...
There are many dunder methods documented [here](https://docs.python.org/3/reference/datamodel.html) but are missing in ObjectProxy. Some of them like ```__call__``` is defined in classes inheriting ObjectProxy. But for the sake of reusability of...
In Python 3.12 and later, since `setuptools` is not included in standard library, `discover_post_import_hooks()` fails when `setuptools` is not installed in the environment. It took so much time to find...