from typing import Callable, Any def foo(x: Callable[[str], Any]) -> None: ... The last line is rejected by the type checker as well, while mypy accepts it.
確定! 回上一頁