Skip to content
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

Fix and improve type hints #76

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Fix and improve type hints #76

merged 2 commits into from
Sep 12, 2024

Conversation

hajimes
Copy link
Owner

@hajimes hajimes commented Sep 12, 2024

The previous version of type hints did not reflect the actual interfaces of mmh3. This PR fixes the issue, with the introduction of ReadableBuffer from typeshed for the official hashlib.

Note that as of Python 3.12, ReadbleBuffer in typeshed is an alias for typing_extensions.Buffer, which was officially introduced as collections.abc.Buffer in Python 3.12 by PEP 688.

@hajimes hajimes merged commit cf6f8a8 into master Sep 12, 2024
46 checks passed
@hajimes hajimes deleted the feature/fix-typehints branch September 12, 2024 05:26
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