Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created December 26, 2019 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/dd81b38c3e7f8190b5a8c3d00f41f575 to your computer and use it in GitHub Desktop.
Save kunigami/dd81b38c3e7f8190b5a8c3d00f41f575 to your computer and use it in GitHub Desktop.
def inc(x: int) -> int:
return x + 1
def delegate(x: object) -> object:
if (isinstance(x, int)):
return inc(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment