mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
pyserial: fix stubtest errors (#9722)
This commit is contained in:
@@ -6,8 +6,9 @@ serial.tools.list_ports_windows # Windows only
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# 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.
|
||||
# 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
|
||||
@@ -15,12 +16,6 @@ serial.serialposix.Serial.write
|
||||
serial.serialposix.PosixPollSerial.read
|
||||
serial.serialposix.VTIMESerial.read
|
||||
|
||||
# Error: is missing from the stub
|
||||
# ===============================
|
||||
# TODO: maybe add these
|
||||
serial.tools.list_ports_linux.SysFS
|
||||
serial.tools.list_ports_linux.comports
|
||||
|
||||
# intended to be private aliases
|
||||
serial.tools.list_ports_posix.plat
|
||||
serial.serialposix.plat
|
||||
|
||||
@@ -7,8 +7,9 @@ serial.tools.list_ports_windows # Windows only
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# 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.
|
||||
# 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
|
||||
|
||||
@@ -6,23 +6,8 @@ serial.tools.list_ports_posix # Posix only
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
# 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.
|
||||
# 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
|
||||
|
||||
# Missing from the stub (TODO: add these)
|
||||
# =======================================
|
||||
serial.win32._SECURITY_ATTRIBUTES.\w+
|
||||
serial.win32._OVERLAPPED.\w+
|
||||
serial.win32._DCB.\w+
|
||||
serial.win32._COMSTAT.\w+
|
||||
serial.win32._COMMTIMEOUTS.\w+
|
||||
serial.win32.N11_OVERLAPPED4DOLLAR_48E.\w+
|
||||
serial.win32.N11_OVERLAPPED4DOLLAR_484DOLLAR_49E.\w+
|
||||
serial.win32.CreateEventW
|
||||
serial.win32.CreateFileW
|
||||
serial.tools.list_ports_linux.SysFS
|
||||
serial.tools.list_ports_linux.comports
|
||||
serial.tools.list_ports_windows.SP_DEVINFO_DATA.\w+
|
||||
serial.tools.list_ports_windows.GUID.\w+
|
||||
|
||||
Reference in New Issue
Block a user