Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Avasam opened this issue Oct 13, 2023 · 0 comments
Open

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

Avasam opened this issue Oct 13, 2023 · 0 comments
Labels
topic: io I/O related issues

Comments

@Avasam
Copy link
Collaborator

Avasam commented Oct 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: io I/O related issues
Projects
None yet
Development

No branches or pull requests

2 participants