Fix annotations with literal values (#3411)

This commit is contained in:
Sebastian Rittau
2019-10-28 14:59:28 +01:00
committed by Jelle Zijlstra
parent 6a7c2011cc
commit 87d7dd3d95
15 changed files with 104 additions and 104 deletions

View File

@@ -814,7 +814,7 @@ class TimeoutExpired(SubprocessError):
class CalledProcessError(Exception):
returncode = 0
returncode: int
# morally: _CMD
cmd: Any
# morally: Optional[_TXT]
@@ -835,8 +835,8 @@ class Popen(Generic[AnyStr]):
stdin: IO[AnyStr]
stdout: IO[AnyStr]
stderr: IO[AnyStr]
pid = 0
returncode = 0
pid: int
returncode: int
# Technically it is wrong that Popen provides __new__ instead of __init__
# but this shouldn't come up hopefully?