Commit Graph

18 Commits

Author SHA1 Message Date
Sebastian Rittau
24abaf0e86 pyserial: Replace IO classes with protocols (#12572) 2024-08-25 17:06:43 +02:00
JP Hutchins
9e3fdf4da9 pyserial: serial: serialutil.pyi: fix excuslive float -> bool (#12035) 2024-05-26 11:41:44 +02:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Shantanu
4d8ae17776 Bump mypy to 1.9, add to json.encoder, small fixups (#11549)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-03-09 14:25:00 -08:00
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Alex Waygood
a9fc14a811 third-party stubs: Add several missing __del__ methods (#11054) 2023-11-21 19:07:30 +00:00
Jun Komoda
4009efa349 _CField as a generic descriptor protocol (#10595) 2023-09-01 16:23:33 +02:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Alex Waygood
6fd7e36e80 Add default values for third-party stubs beginning with 'P' (#9957) 2023-03-27 18:58:53 +01:00
Ali Hamdan
f8add366d5 pyserial: Fix read and write methods (#9825) 2023-03-08 21:11:26 -08:00
Avasam
52ec44fa58 Improve many __(a)exit__ annotations (#9696) 2023-02-25 21:50:30 +00:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
hamdanal
a2fee5b30f pyserial: fix stubtest errors (#9722) 2023-02-19 12:08:20 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Alex Waygood
6d535bf0a3 Enable stubtest for pyserial (#9692) 2023-02-09 00:10:33 +01:00
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
hamdanal
c6b09b60de Add stubs for the pyserial package (#9347) 2022-12-22 14:10:54 -06:00