opshin
opshin copied to clipboard
Use functools.singledispatch to create overloaded functions
the python functools library provides a function that allows the user to create functions overloaded by type, singledispatch
This could be used to let users natively add Polymorphic Functions, by automatically rewriting such annotated functions into the PolymorphicFunctionType