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
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 Distribution
pyloadover-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02209057f4a6b55ece54e32f04d71aa4f91302f4ffc6cd2115322d1a7a53b41e |
|
MD5 | 4e73cd40d2f9ba5433892bb3f3765e88 |
|
BLAKE2b-256 | 141d510b084d96d5b995ba4a492749453a4ad8c7901a5280c41925f98d2750ee |