Closed
Description
If I have a type alias that is a Callable and a function that matches that type alias, it would be nice to annotate the function using just the type alias.
Example:
Validator = Callable[[Any], Optional[str]]
def check_string(val):
# type: Validator
... # check if val is a string, return an error message if it isn't