from typing import Optional def foo() -> Optional[int]: return 42