mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix timeout parameter to Popen.wait() -- it is optional (in both senses).
This commit is contained in:
@@ -229,7 +229,7 @@ class Popen:
|
||||
def poll(self) -> int: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
# 3.3 added timeout
|
||||
def wait(self, timeout: float) -> int: ...
|
||||
def wait(self, timeout: Optional[float] = ...) -> int: ...
|
||||
else:
|
||||
def wait(self) ->int: ...
|
||||
# Return str/bytes
|
||||
|
||||
Reference in New Issue
Block a user