Metadata-Version: 2.1
Name: delegatefn
Version: 0.1.0
Summary: Signature-preserving function delegation
Author: IsaacBreen
Author-email: 57783927+IsaacBreen@users.noreply.github.com
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

A tiny utility for preserving signature information (parameter names, annotations, and docstrings) when delegating one function to another.

# Usage

```python
from delegatefn import delegate
import inspect


def foo(a, b, c):
    """This is the docstring for foo."""
    pass


@delegate(foo)
def bar(a, b, c):
    pass


assert inspect.signature(bar) == inspect.signature(foo)

print(inspect.signature(bar))
# (a, b, c)
```
