Created
October 2, 2022 20:05
-
-
Save ahmedbesbes/a31475489235a6e013f7c5421c92ebab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from typing import Callable | |
def sum_numbers(x: int, y: int) -> int: | |
return x + y | |
def foo(x: int, y: int, func: Callable) -> int: | |
output = func(x, y) | |
return output | |
foo(1, 2, sum_numbers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment