From 32f474d6efa713f0d452b6ac90f070e577fdd4ad Mon Sep 17 00:00:00 2001 From: Mix <32300164+mnixry@users.noreply.github.com> Date: Mon, 9 May 2022 07:53:44 +0800 Subject: [PATCH] subprocess: improve `Popen.returncode` type (#7806) --- stdlib/subprocess.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/subprocess.pyi b/stdlib/subprocess.pyi index 552f2b22fe8e..83178e15d9e8 100644 --- a/stdlib/subprocess.pyi +++ b/stdlib/subprocess.pyi @@ -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__