Created
December 26, 2019 07:24
-
-
Save kunigami/dd81b38c3e7f8190b5a8c3d00f41f575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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