mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-29 15:43:21 +08:00
Change return annotation of Popen.poll to Optional[int] (#3986)
Fixes #3984
This commit is contained in:
1 parent
65b3ef91fd
commit
3ac1f86499
2 files changed
+2
-2
No files matched your search
@@ -1155,7 +1155,7 @@ class Popen(Generic[AnyStr]):
|
||||
start_new_session: bool = ...,
|
||||
pass_fds: Any = ...) -> Popen[Any]: ...
|
||||
|
||||
def poll(self) -> int: ...
|
||||
def poll(self) -> Optional[int]: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def wait(self, timeout: Optional[float] = ...) -> int: ...
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user