semvec/pypi-packages huggingface dataset:
decoratemethod 0.1.1
Let function decorator decorate the bound method of per instance.
License: MIT
Requires Python: >=3.8,<4.0

# decoratemethod

Let function decorator decorate the bound method for each instance.

## Usage

### lru_cache

To let each instance has their own lru cache:

``` py
from functools import lru_cache
from decoratemethod import decorate

class Foo:
    @decorate(lru_cache)
    def decorated_method(self, x):
        ...
```