Skip to content

docs(ws): expose local_addr in response docs#542

Merged
0x676e67 merged 1 commit intomainfrom
ws
Mar 27, 2026
Merged

docs(ws): expose local_addr in response docs#542
0x676e67 merged 1 commit intomainfrom
ws

Conversation

@0x676e67
Copy link
Copy Markdown
Owner

No description provided.

@0x676e67 0x676e67 merged commit 6f92e6c into main Mar 27, 2026
@0x676e67 0x676e67 deleted the ws branch March 27, 2026 03:19
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds the local_addr attribute to the Response class in blocking.py and the WebSocket class in wreq.py to provide access to the local socket address. A redundant definition of local_addr was identified in blocking.py, as the attribute's documentation was already present in the file immediately preceding the new insertion.

Comment on lines +70 to +73
local_addr: SocketAddr | None
r"""
Get the local address of the response.
"""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

critical

The local_addr attribute is already defined at lines 65-68. Adding it again at lines 70-73 creates a duplicate definition, which can lead to unexpected behavior or errors. Please remove this redundant definition.

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