subprocess: improve Popen.returncode type (#7806)

This commit is contained in:
Mix
2022-05-09 07:53:44 +08:00
committed by GitHub
parent 8d8420bc54
commit 32f474d6ef

View File

@@ -798,7 +798,7 @@ class Popen(Generic[AnyStr]):
stdout: IO[AnyStr] | None
stderr: IO[AnyStr] | None
pid: int
returncode: int
returncode: int | Any
universal_newlines: bool
# Technically it is wrong that Popen provides __new__ instead of __init__