Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python: annotate Object.from_bytes_() with collections.abc.Buffer
I had some code that passed a ctypes.create_string_buffer() to Object.from_bytes_(), which is valid at runtime but mypy didn't like. We can use collections.abc.Buffer instead, but we need the typing_extensions backport before Python 3.12. Signed-off-by: Omar Sandoval <[email protected]>
- Loading branch information