This is an archive of the discontinued Mercurial Phabricator instance.

worker: silence type error when calling pickle

Authored by indygreg on Mar 3 2022, 8:39 PM.



pytype is complaining that the argument to pickle.load() is not an
IO. pytype isn't wrong: _blockingreader doesn't implement
io.RawIOBase, only read() and readline(). But it appears this is
enough for pickle. So we silence the false positive.

This fixes a regression introduced by D12304 /
cc0e059d2af8: worker: remove Python 2 support code.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Mar 3 2022, 8:39 PM
Alphare accepted this revision.Mar 4 2022, 7:15 AM
Alphare added a subscriber: Alphare.


This revision is now accepted and ready to land.Mar 4 2022, 7:15 AM
This revision was automatically updated to reflect the committed changes.