Skip to main content

inherit **kwargs from another fucntion in the signature.

Project description

Sign

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sign, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sign-0.0.2-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size sign-0.0.2.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page