Skip to content

Instantly share code, notes, and snippets.

@arpitbbhayani
Created February 7, 2020 06:28
Show Gist options
  • Save arpitbbhayani/b6070c3a4e9863b47162fdb11146a592 to your computer and use it in GitHub Desktop.
Save arpitbbhayani/b6070c3a4e9863b47162fdb11146a592 to your computer and use it in GitHub Desktop.
def overload(fn):
"""overload is the decorator that wraps the function
and returns a callable object of type Function.
"""
return Namespace.get_instance().register(fn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment