Skip to content

chore(body): fmt code#401

Merged
0x676e67 merged 2 commits intomainfrom
feat2
Oct 26, 2025
Merged

chore(body): fmt code#401
0x676e67 merged 2 commits intomainfrom
feat2

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

No description provided.

@0x676e67 0x676e67 requested a review from Copilot October 26, 2025 02:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the body handling code to consolidate stream types and improve code organization through formatting and simplification.

Key Changes:

  • Merged SyncStream and AsyncStream into a single PyStream enum
  • Changed Value and Body enums to use PyBackedStr/PyBackedBytes directly with derive macros instead of pre-converted Bytes
  • Updated file paths in examples to be relative to the correct directory

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/client/body/multipart.rs Consolidated stream types in Value enum, moved FromPyObject implementation to derive macro
src/client/body.rs Merged SyncStream and AsyncStream into PyStream enum, simplified Body enum with derive macro
python/examples/multipart.py Corrected file paths to remove incorrect "../" prefix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@0x676e67 0x676e67 merged commit 958ae25 into main Oct 26, 2025
31 checks passed
@0x676e67 0x676e67 deleted the feat2 branch October 26, 2025 02:59
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.

2 participants