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-1.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ba9880ec2113d0578f2c8fe1358aa532648c49110b1e9adc08560e65f9c4a22 |
|
MD5 | e919858cf89306a9810af32542a8dcf1 |
|
BLAKE2b-256 | ad5888a71225c6ca5e293168a2822d5eaf14687f121c84ff8904e9f0eaedcfe3 |