mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 01:06:19 +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
@@ -98,7 +98,7 @@ class Popen(Generic[_T]):
|
||||
startupinfo: Optional[Any] = ...,
|
||||
creationflags: int = ...) -> Popen[bytes]: ...
|
||||
|
||||
def poll(self) -> int: ...
|
||||
def poll(self) -> Optional[int]: ...
|
||||
def wait(self) -> int: ...
|
||||
# morally: -> Tuple[Optional[bytes], Optional[bytes]]
|
||||
def communicate(self, input: Optional[_TXT] = ...) -> Tuple[bytes, bytes]: ...
|
||||
|
||||
Reference in new issue
Block a user