What about
class MyClass: def __init__(self) -> None: pass def my_func( self, arg1: int = 10, arg2: List[int] ) -> Generator[int, None, None]: ...?