Introduce a protocol for ZipFile.__init__
's file
parameter
#10880
Labels
topic: io
I/O related issues
ZipFile.__init__
's file
parameter
#10880
See #10706 (comment)
The
file
parameter inZipFile.__init__
is typed asStrPath | 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.The text was updated successfully, but these errors were encountered: