mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 16:33:49 +08:00
Fix timeout parameter to Popen.wait() -- it is optional (in both senses).
This commit is contained in:
1 parent
b9ab4ae1c2
commit
8d1026cade
1 file changed
+1
-1
@@ -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