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

persist-cache fails to cache calls that return bytes, bytearray and memoryview #2

Closed
umarbutler opened this issue Mar 14, 2024 · 1 comment

Comments

@umarbutler
Copy link
Owner

bytes, bytearray and memoryview are being treated as absolutely directly msgpackable when, in fact, the msgspec decoder is not given bytes, bytearray and memoryview type hints and so is incapable of deserialising them. The decoder is not given such type hints because we already type hint strs and doing so prevents the other types from being decoded to, as described in this issue on the msgspec GitHub project.

@umarbutler
Copy link
Owner Author

Fixed by f763ce7, available in v0.1.1.

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

No branches or pull requests

1 participant