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

Merged
merged 2 commits into from
May 6, 2025
Merged

Add binaryornot stubs #13920

merged 2 commits into from
May 6, 2025

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.

@Tatsh Tatsh force-pushed the binaryornot branch 2 times, most recently from 3b2a117 to ec07240 Compare May 2, 2025 05:09

This comment has been minimized.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Remarks below.

@Tatsh Tatsh requested a review from srittau May 5, 2025 21:22

This comment has been minimized.

Copy link
Contributor

github-actions bot commented May 6, 2025

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

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! For future reference: Please don't force push, this makes reviewing considerably harder.

@srittau srittau merged commit 1c08df2 into python:main May 6, 2025
43 checks passed
@Tatsh Tatsh deleted the binaryornot branch May 6, 2025 07:15
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.

2 participants