This is a small script that allows C++ style function overloading, meaning there can be multiple functions with the same name but different parameters in the same scope and what parameters you pass to the function call will decide which of them will be called.
To get started, import overload
and for every function with the same name, add the @overload
decorator to it. The script automatically differentiates between functions with different names and functions with the same name in different scopes.
-
Notifications
You must be signed in to change notification settings - Fork 0
00Julian00/Function-overloading-for-Python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A decorator that allows C++ style function overloading
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published