Skip to content

Introduce a protocol for ZipFile.__init__'s file parameter #10880

Open
@Avasam

Description

@Avasam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: ioI/O related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions