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.2.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6322651513cc16271c0ca8d1867b9173aa9e93b2c629471c321504e402facdd3 |
|
MD5 | 6f7ae20bad4f0842df1634b501632e5b |
|
BLAKE2b-256 | c5f4ba2e637142ea9d6bca0ac59b5817e4b33360a320d06f731e7240b383e4cb |