mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 15:16:54 +08:00
pyserial: Fix read and write methods (#9825)
This commit is contained in:
@@ -8,22 +8,15 @@ serial.serialjava # No Java Communications API implementation found
|
||||
# ======================
|
||||
# These are positional only argument in the stub because they inherit from io.RawIOBase
|
||||
# but at runtime they are normal arguments that don't have consistent names.
|
||||
serial.Serial.read
|
||||
serial.Serial.write
|
||||
serial.SerialBase.readinto
|
||||
serial.serialutil.SerialBase.readinto
|
||||
serial.rfc2217.Serial.read
|
||||
serial.rfc2217.Serial.write
|
||||
serial.rs485.RS485.write
|
||||
serial.urlhandler.protocol_cp2110.Serial.read
|
||||
serial.urlhandler.protocol_cp2110.Serial.write
|
||||
serial.urlhandler.protocol_loop.Serial.read
|
||||
serial.urlhandler.protocol_loop.Serial.write
|
||||
serial.urlhandler.protocol_rfc2217.Serial.read
|
||||
serial.urlhandler.protocol_rfc2217.Serial.write
|
||||
serial.urlhandler.protocol_socket.Serial.read
|
||||
serial.urlhandler.protocol_socket.Serial.write
|
||||
serial.urlhandler.protocol_spy.Serial.read
|
||||
serial.urlhandler.protocol_spy.Serial.write
|
||||
|
||||
# Error: is not present in stub
|
||||
|
||||
@@ -9,12 +9,7 @@ serial.tools.list_ports_windows # Windows only
|
||||
# Methods defined with positional-only argument in the stub because they inherit from
|
||||
# io.RawIOBase but at runtime they are normal arguments that don't have consistent
|
||||
# names.
|
||||
serial.PosixPollSerial.read
|
||||
serial.VTIMESerial.read
|
||||
serial.serialposix.Serial.read
|
||||
serial.serialposix.Serial.write
|
||||
serial.serialposix.PosixPollSerial.read
|
||||
serial.serialposix.VTIMESerial.read
|
||||
|
||||
# intended to be private aliases
|
||||
serial.tools.list_ports_posix.plat
|
||||
|
||||
@@ -10,12 +10,7 @@ serial.tools.list_ports_windows # Windows only
|
||||
# Methods defined with positional-only argument in the stub because they inherit from
|
||||
# io.RawIOBase but at runtime they are normal arguments that don't have consistent
|
||||
# names.
|
||||
serial.PosixPollSerial.read
|
||||
serial.VTIMESerial.read
|
||||
serial.serialposix.Serial.read
|
||||
serial.serialposix.Serial.write
|
||||
serial.serialposix.PosixPollSerial.read
|
||||
serial.serialposix.VTIMESerial.read
|
||||
|
||||
# Error: is missing from the stub (intended to be private aliases)
|
||||
# ================================================================
|
||||
|
||||
@@ -9,5 +9,4 @@ serial.tools.list_ports_posix # Posix only
|
||||
# Methods defined with positional-only argument in the stub because they inherit from
|
||||
# io.RawIOBase but at runtime they are normal arguments that don't have consistent
|
||||
# names.
|
||||
serial.serialwin32.Serial.read
|
||||
serial.serialwin32.Serial.write
|
||||
|
||||
Reference in New Issue
Block a user