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.0.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04386455e77ff885762f31ba2a787115f7f4e7a361e191e29a32b546a3a7cf9a |
|
MD5 | 1f74f891477806a678ceb4b139b441c3 |
|
BLAKE2b-256 | 27043dd5bd40dd71dbfcf344028a7c810f048511523549d73f5cc99574acda47 |