-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Feed PickleBuffers to hashlib #4362
Labels
stubs: false positive
Type checkers report false errors
Comments
srittau
added
size-small
stubs: false positive
Type checkers report false errors
labels
Jul 25, 2020
I think this needs python/typing#593 for a good fix. PickleBuffer implements the buffer protocol and not much more. |
We have |
But ReadableBuffer doesn't contain PickleBuffer |
@hatal175 but we could add it in the |
JelleZijlstra
added a commit
that referenced
this issue
Apr 26, 2022
srittau
pushed a commit
that referenced
this issue
Apr 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.8.5
mypy 0.782
mypy output:
2: error: Argument "buffer_callback" to "dumps" has incompatible type "Callable[[Union[bytes, bytearray, memoryview]], None]"; expected "Optional[Callable[[PickleBuffer], Any]]"
Expected output:
No error
The text was updated successfully, but these errors were encountered: