Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+3 -3
View File
@@ -71,7 +71,7 @@ class Serial(SerialBase, PlatformSpecific):
def write(self, b: ReadableBuffer, /) -> int | None: ...
def reset_input_buffer(self) -> None: ...
def reset_output_buffer(self) -> None: ...
def send_break(self, duration: float = ...) -> None: ...
def send_break(self, duration: float = 0.25) -> None: ...
@property
def cts(self) -> bool: ...
@property
@@ -82,8 +82,8 @@ class Serial(SerialBase, PlatformSpecific):
def cd(self) -> bool: ...
@property
def out_waiting(self) -> int: ...
def set_input_flow_control(self, enable: bool = ...) -> None: ...
def set_output_flow_control(self, enable: bool = ...) -> None: ...
def set_input_flow_control(self, enable: bool = True) -> None: ...
def set_output_flow_control(self, enable: bool = True) -> None: ...
def nonblocking(self) -> None: ...
class PosixPollSerial(Serial): ...
@@ -33,4 +33,4 @@ if sys.platform == "darwin":
def scan_interfaces() -> list[SuitableSerialInterface]: ...
def search_for_locationID_in_interfaces(serial_interfaces: list[SuitableSerialInterface], locationID: int) -> str | None: ...
def comports(include_links: bool = ...) -> list[ListPortInfo]: ...
def comports(include_links: bool = False) -> list[ListPortInfo]: ...