Files
typeshed/stubs
hamdanal 250befdef0 Fix optional USB attributes in pyserial's ListPortInfo (#9654)
Some USB specific attributes in pyserial's [`serial.tools.list_port_common.ListPortInfo`](https://github.com/python/typeshed/blob/main/stubs/pyserial/serial/tools/list_ports_common.pyi#L11-L24) class are not always available. They depend on the USB device and its driver correctly reporting these attributes. I discovered this recently with a new device that does not report its serial number. Only the Vendor ID `vid` and Product ID `pid` are guaranteed (This can be seen [here](https://github.com/pyserial/pyserial/blob/master/serial/tools/list_ports_linux.py#L52-L62) where `vid` and `pid` are always cast as `int` while other attributes are left as `str | None` for USB devices). 
This is a follow up to #9347 and the discussion at https://github.com/python/typeshed/pull/9347#issuecomment-1358245865
2023-02-01 14:03:24 -08:00
..
2022-10-12 09:35:12 +01:00
2023-02-01 06:06:04 -08:00
2023-01-29 11:41:09 -08:00
2022-12-27 17:46:54 +00:00
2023-02-01 06:06:04 -08:00
2022-12-24 11:07:47 +00:00
2023-01-05 11:37:08 +00:00
2023-01-28 07:39:30 -08:00
2023-01-07 16:22:09 +00:00
2022-11-01 12:37:21 +01:00
2023-02-01 06:06:04 -08:00
2022-11-22 10:18:49 +00:00
2023-01-06 18:25:48 +00:00
2023-02-01 06:06:04 -08:00
2022-11-25 09:34:37 +01:00
2022-11-22 20:46:29 -08:00
2023-02-01 06:06:04 -08:00
2022-11-18 10:32:30 +00:00
2022-11-13 11:11:47 +00:00
2023-01-18 06:29:18 -08:00
2022-12-23 14:24:30 +00:00
2022-11-16 10:23:50 +01:00
2023-01-31 21:41:19 -08:00