Skip to content

Type Python sources as anything with read(size) -> bytes - #36

Merged
GirlBossRush merged 1 commit into
mainfrom
python-source-protocol
Oct 28, 2026
Merged

GirlBossRush merged 1 commit into
mainfrom
python-source-protocol

Conversation

@GirlBossRush

Copy link
Copy Markdown
Member

BinaryIO rejected streams the standard library returns, such as zipfile.ZipFile.open members (IO[bytes]), which the reader already accepts at runtime. Found migrating Mailwoman's corpus-python, where mypy --strict refused a zip member.

BinaryIO rejected the streams the standard library returns, such as a
zipfile member (IO[bytes]), though the reader accepts them at runtime.
@GirlBossRush
GirlBossRush merged commit 48ee021 into main Oct 28, 2026
2 checks passed
@GirlBossRush
GirlBossRush deleted the python-source-protocol branch October 28, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant