Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created November 16, 2024 02:03
Show Gist options
  • Save mypy-play/983dbcb14a8c0d82f6a2d58e1e048834 to your computer and use it in GitHub Desktop.
Save mypy-play/983dbcb14a8c0d82f6a2d58e1e048834 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from collections.abc import Callable
def foo(x: str, y: str = '') -> str:
return 'foo'
bar: Callable[[str], str] = foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment