pyserial: Fix read and write methods (#9825)

This commit is contained in:
Ali Hamdan
2023-03-09 06:11:26 +01:00
committed by GitHub
parent 4b9c1b9ed3
commit f8add366d5
13 changed files with 44 additions and 19 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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)
# ================================================================

View File

@@ -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