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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677506c5611404120e28d18c57dab8ea073dcdb280b4bffda16f72447cd22587 |
|
MD5 | 4a0812f9c783de76dd3f7740d7a368be |
|
BLAKE2b-256 | d6a7dc0aca48775ceead5863bef4ed28e35ca1c3b6c823023ac2e2f5233cf386 |