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.

Source Distribution

sign-0.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

sign-0.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file sign-0.0.2.tar.gz.

File metadata

  • Download URL: sign-0.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for sign-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7f0c3c65cc98c0442bbea2334e82c69e756923cf7a0ad5a78766f8151eadb915
MD5 bcae275528f1fd69bc0818419b63e6ad
BLAKE2b-256 f8242397a4e23327dc49e56c3356520a837f17728f0ed1f9613ac966dd16a1bf

See more details on using hashes here.

File details

Details for the file sign-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sign-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for sign-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eba1dc78b07859bc8ef9e4e04a2e242a368d3504e6fd9cd830066548f0e652ec
MD5 3564fe547f04c04fb011943f493dbb7f
BLAKE2b-256 8864a4a2d014a1e9b66a0fa569d23aa139869ae223223ccf48d793e8a017fcac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page