Skip to content

Add binaryornot stubs #13920

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add binaryornot stubs #13920

wants to merge 1 commit into from

Conversation

Tatsh
Copy link
Contributor

@Tatsh Tatsh commented May 2, 2025

https://github.com/binaryornot/binaryornot

Upstream has been inactive for 2 months and has a PR open to add a minimal type stubs (in the code would be better), but it is incomplete.

helpers.is_binary_string does not accept str (as the name may suggest) because it calls on chardet.detect() which only accepts bytes | bytearray.

This comment has been minimized.

Copy link
Contributor

github-actions bot commented May 2, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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