-
-
Notifications
You must be signed in to change notification settings - Fork 2k
pyserial: read_all cannot return None? #15619
Copy link
Copy link
Open
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: false positiveType checkers report false errorsType checkers report false errors
Description
The pyserial documentation says that read returns bytes. The comment in serialutil.pyi discusses this and has read and read_until returning bytes, not bytes | None.
For some reason read_all is typed as returning bytes | None? The implementation simply calls read, so I don't see why it's different from read.
Have I missed something?
Thanks for maintaining typeshed!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedAn actionable problem of low to medium complexity where a PR would be very welcomeAn actionable problem of low to medium complexity where a PR would be very welcomestubs: false positiveType checkers report false errorsType checkers report false errors