a simple package
Project description
Decorators to inherit signature form one function to another.
Mainly useful when a function or method takes *args, **kwargs and pass them (mostly unmodified) to another function or methods.
This will merge the signature of the decorated function, with the target function to simplify inspection.
example
def foo(a=1, b=2): pass @sign.inherit(foo): def bar(*args, **kwargs): return foo(*args, **kwargs)
bar signature should appear as:
bar(*args, a=1, b=2, **kwargs)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
sign-0.0.1-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file sign-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sign-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ccc3d01b8fd198062dee6e2beb3b547046c1c6629516142c5f336cde8ebaa73 |
|
MD5 | dd5ea8552d6a76083c81be68b11ce34e |
|
BLAKE2b-256 | 809682849ed9ae460b51356aa49fc30a091163f47cb4d17b595c217714e0afbd |