Skip to content

Conversation

@tsubakiky
Copy link
Collaborator

@tsubakiky tsubakiky commented Jul 7, 2025

This pull request includes multiple changes across client, server, and core library files to improve code clarity, consistency, and functionality. Key updates include simplifying streaming request handling, fixing typos in method names, and enhancing documentation for better readability and maintainability.

Improvements to streaming request handling:

  • examples/client.py: Replaced ensure_single with the new single method for handling single messages in streaming requests. This simplifies client-side streaming logic. [1] [2]
  • examples/server.py: Updated server-side streaming logic to use the single method instead of ensure_single.
  • src/connect/connect.py: Added the single method to StreamRequest and StreamResponse classes for consistent handling of single messages in streaming contexts. [1] [2]

Fixes and consistency updates:

Documentation enhancements:

  • src/connect/connect.py: Improved class and method docstrings for RequestCommon, StreamRequest, UnaryRequest, and StreamResponse to provide clearer descriptions of attributes, parameters, and usage examples. [1] [2] [3] [4]

These changes collectively enhance the usability, readability, and maintainability of the codebase while ensuring consistent functionality across different components.

@tsubakiky tsubakiky force-pushed the stream-single-method branch 2 times, most recently from 9be3c0a to 7cb2d99 Compare July 7, 2025 13:01
@tsubakiky tsubakiky force-pushed the stream-single-method branch from 7cb2d99 to 2ce5874 Compare July 7, 2025 13:03
@tsubakiky tsubakiky changed the title connect: add single method connect: add single method for Stream class Jul 7, 2025
@tsubakiky tsubakiky marked this pull request as ready for review July 7, 2025 13:06
@tsubakiky tsubakiky requested a review from zchee as a code owner July 7, 2025 13:06
@tsubakiky tsubakiky merged commit bfb2a6d into main Jul 7, 2025
4 checks passed
@tsubakiky tsubakiky deleted the stream-single-method branch July 7, 2025 13:09
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