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.2.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef6630602165112464a64ad8d94102bb6e2e97ac0594ee30f2a7feaaf92169ef |
|
MD5 | feeed0e9bb72ce653ce986e1395d9693 |
|
BLAKE2b-256 | f9326798d3e1f5f5fb589f942655e430d41487bcbd4d363b161db0f750d7d8b0 |