Skip to content

Instantly share code, notes, and snippets.

@ahmedbesbes
Created October 2, 2022 20:05
Show Gist options
  • Save ahmedbesbes/a31475489235a6e013f7c5421c92ebab to your computer and use it in GitHub Desktop.
Save ahmedbesbes/a31475489235a6e013f7c5421c92ebab to your computer and use it in GitHub Desktop.
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