mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Fix annotations with literal values (#3411)
This commit is contained in:
committed by
Jelle Zijlstra
parent
6a7c2011cc
commit
87d7dd3d95
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user