-
-
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
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
The pyserial documentation says that
readreturnsbytes. The comment inserialutil.pyidiscusses this and hasreadandread_untilreturningbytes, notbytes | None.For some reason
read_allis typed as returningbytes | None? The implementation simply callsread, so I don't see why it's different fromread.Have I missed something?
Thanks for maintaining typeshed!