Skip to content

Commit 32f474d

Browse files
authored
subprocess: improve Popen.returncode type (#7806)
1 parent 8d8420b commit 32f474d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/subprocess.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ class Popen(Generic[AnyStr]):
798798
stdout: IO[AnyStr] | None
799799
stderr: IO[AnyStr] | None
800800
pid: int
801-
returncode: int
801+
returncode: int | Any
802802
universal_newlines: bool
803803

804804
# Technically it is wrong that Popen provides __new__ instead of __init__

0 commit comments

Comments
 (0)