wrapt icon indicating copy to clipboard operation
wrapt copied to clipboard

A Python module for decorators, wrappers and monkey patching.

Results 84 wrapt issues
Sort by recently updated
recently updated
newest added

I was just going through outdated site-packages, when I saw that wrapt had a never version, I then updated it, and boom errors and nothing worked anymore. I have no...

The C version of `CallableObjectProxy.__call__` already has `self` be a positional-only argument, but [the Python version doesn't](https://github.com/GrahamDumpleton/wrapt/blob/e96b09d7af4e690b1822f8ccc6bf2ea7507bff8f/src/wrapt/wrappers.py#L448). Here's a good way to fix that which works on all old Python...

Consider following code: ``` class Foo: @property def bar(self): return "value" class WrappedFoo(wrapt.ObjectProxy): @property def bar(self): raise ValueError("exception") ``` Now `WrappedFoo(Foo()).bar == "value"`, even though I want the exception to...

Apologies if covered elsewhere, but it seems to be that wrapt has optional extensions. If that's the case, it should ship the pure Python wheel too, pip should select the...

When you decorate a method, you may want to set some metadata on the decorated object. However, doing so also mutates the original method, which is clearly undesirable. In particular,...

Thank you for this great framework! I am trying to use the `ObjectProxy` to overwrite a method of an object. It works perfectly if the method is called from the...

I am posting this to share the issue I face when trying to use multiple processes with a function wrapped with a `wrapt.decorator`. I am using the following libraries: `wrapt==1.12.1`...

Given: ```python import wrapt class A: def __init__(self, value): self.value = value class B(wrapt.ObjectProxy): def __init__(self, wrapped): super().__init__(wrapped) self._self_wvalue = 42 a = A(1234) print(vars(a)) # {'value': 1234} b =...

This library amazing, thank you for making it. However, one minor issue when I use it in PyCharm (and probably other linters)... I've written this simple decorator: ```python @wrapt.decorator def...

Signed-off-by: Christian Heimes