Created
April 18, 2021 11:22
-
-
Save Naartti/7d697561ab4dbb7d8653523adb77b569 to your computer and use it in GitHub Desktop.
Typed Python Callable
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 typing import Callable | |
greet_alt_2: Callable[[str], str] = lambda name: f"Hello {name}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment