Open
Description
See #10706 (comment)
The file
parameter in ZipFile.__init__
is typed as StrPath | IO[bytes]
. IO[bytes]
is incorrect here, but the correct protocol might be a bit complex and not something I feel like launching myself into right now. So I'm opening this issue so we don't forget.