asyncio.subprocess: loop is Optional (#3930)

This commit is contained in:
Shantanu
2020-04-20 03:20:08 -07:00
committed by GitHub
parent 8e46eb7b85
commit 626a0f3f73
2 changed files with 2 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ async def create_subprocess_shell(
stdin: Union[int, IO[Any], None] = ...,
stdout: Union[int, IO[Any], None] = ...,
stderr: Union[int, IO[Any], None] = ...,
loop: events.AbstractEventLoop = ...,
loop: Optional[events.AbstractEventLoop] = ...,
limit: int = ...,
**kwds: Any
) -> Process: ...
@@ -54,7 +54,7 @@ async def create_subprocess_exec(
stdin: Union[int, IO[Any], None] = ...,
stdout: Union[int, IO[Any], None] = ...,
stderr: Union[int, IO[Any], None] = ...,
loop: events.AbstractEventLoop = ...,
loop: Optional[events.AbstractEventLoop] = ...,
limit: int = ...,
**kwds: Any
) -> Process: ...