Created
November 16, 2024 02:03
-
-
Save mypy-play/983dbcb14a8c0d82f6a2d58e1e048834 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
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
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