Skip to main content

Overloading Utilities

Project description

pyloadover

Repository for developing and maintaining the code for pyloadover

Installation

pip install pyloadover

loadover

from pyloadover import loadover


@loadover
def function():
    return None


@loadover
def function(x: int):
    return x ** 2


print("[1] Calling function():")
print(function())

print("[2] Calling function(5):")
print(function(5))

print("[3] Calling function(5, 25, 125):")
print(function(5, 25, 125))
[1] Calling function():
None
[2] Calling function(5):
25
[3] Calling function(5, 25, 125):
pyloadover.exceptions.NoMatchingSignatureError: Provided arguments do not match any signature in registry 'function'

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

pyloadover-1.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

pyloadover-1.1.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

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