8000 feat: Python bindings now support subclass inheritance for classes by 0x676e67 · Pull Request #209 · 0x676e67/rnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Python bindings now support subclass inheritance for classes #209

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

Merged
merged 2 commits into from
May 27, 2025

Conversation

0x676e67
Copy link
Owner

No description provided.

Copy link
@Copilot 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 enables subclass inheritance for various Python binding types by adding the subclass flag to #[pyclass] attributes.

  • Allowed Python-side subclassing for proxy, multipart, header, cookie, and response classes.
  • Updated #[pyclass] annotations across both async and blocking modules to #[pyclass(subclass)].

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/typing/proxy.rs Enabled subclassing for Proxy class.
src/typing/multipart/part.rs Enabled subclassing for Part class.
src/typing/multipart/form.rs Enabled subclassing for Multipart class.
src/typing/mod.rs Enabled subclassing for ImpersonateOption struct.
src/typing/header.rs Enabled subclassing for header map and its iterators.
src/typing/cookie.rs Enabled subclassing for Cookie class.
src/blocking/response/ws.rs Enabled subclassing for BlockingWebSocket.
src/blocking/response/http.rs Enabled subclassing for BlockingResponse and streamer.
src/async_impl/response/ws/mod.rs Enabled subclassing for WebSocket class.
src/async_impl/response/ws/message.rs Enabled subclassing for Message class.
src/async_impl/response/http.rs Enabled subclassing for Response and Streamer.
Comments suppressed due to low confidence (1)

src/blocking/response/http.rs:11

  • Typo in doc comment: 'bloking' should be 'blocking'.
/// A bloking response from a request.

@0x676e67 0x676e67 merged commit d6260c8 into main May 27, 2025
16 checks passed
@0x676e67 0x676e67 deleted the feat branch May 27, 2025 05:26
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.

1 participant
0