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-2.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for pyloadover-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f80c72183e177537ab184b96d7f44400b8337cf3028db76b8db585089ce42477 |
|
MD5 | 96af5f85d7c1e7bf484b4c49a764b933 |
|
BLAKE2b-256 | 64ae55a1e8164687097eca2e0a75b396bfe3aec7d185c7ec31efe87f5a37683a |