Skip to content

Conversation

@ArEnSc
Copy link
Contributor

@ArEnSc ArEnSc commented Aug 15, 2025

No description provided.

@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

ArEnSc and others added 2 commits August 15, 2025 20:00
- Change _get_file_details() to return Buffer instead of bytes
- Add special handling for memoryview inputs to avoid unnecessary conversion
- Support all buffer protocol objects (bytes, bytearray, memoryview, array.array, etc.)
- Update type annotations throughout to use Buffer type from typing_extensions
- Improve error messages to mention "buffer" instead of just "bytes"

This change reduces memory overhead when working with buffer protocol objects
by preserving memoryview objects instead of converting them to bytes unnecessarily.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ArEnSc ArEnSc force-pushed the feature/accept-any-buffer-input-in-file-preparation-apis branch from 59a2dc2 to b7bed1e Compare August 16, 2025 00:06
@ArEnSc ArEnSc closed this Aug 16, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2025
@github-actions github-actions bot added the CLA signed Indicates that all contributors have signed label Aug 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA signed Indicates that all contributors have signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant