mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Make _winapi.SetNamedPipeHandleState args Optional (#2571)
As can be seen here: https://github.com/python/cpython/blob/master/Modules/_winapi.c#L1436 the arguments can be Optional (and are used as such in CPython).
This commit is contained in:
committed by
Sebastian Rittau
parent
701f970c6f
commit
a01335421d
@@ -64,7 +64,7 @@ def GetVersion() -> int: ...
|
||||
def OpenProcess(desired_access: int, inherit_handle: bool, process_id: int) -> int: ...
|
||||
def PeekNamedPipe(handle: int, size: int = ...) -> Union[Tuple[int, int], Tuple[bytes, int, int]]: ...
|
||||
def ReadFile(handle: int, size: int, overlapped: Union[int, bool] = ...) -> Tuple[bytes, int]: ...
|
||||
def SetNamedPipeHandleState(named_pipe: int, mode: int, max_collection_count: int, collect_data_timeout: int) -> None: ...
|
||||
def SetNamedPipeHandleState(named_pipe: int, mode: Optional[int], max_collection_count: Optional[int], collect_data_timeout: Optional[int]) -> None: ...
|
||||
def TerminateProcess(handle: int, exit_code: int) -> None: ...
|
||||
def WaitForMultipleObjects(handle_seq: Sequence[int], wait_flag: bool, milliseconds: int = ...) -> int: ...
|
||||
def WaitForSingleObject(handle: int, milliseconds: int) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user