mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-12 19:12:31 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user