Skip to content
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

socketserver: improve bytes handling #9096

Merged
merged 14 commits into from
Jan 12, 2023

Conversation

JelleZijlstra
Copy link
Member

No description provided.

@github-actions

This comment has been minimized.

@JelleZijlstra
Copy link
Member Author

hm, since these are mostly for subclasses, making the address types precise is probably mostly a hassle for subclassers.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

stdlib/socketserver.pyi Outdated Show resolved Hide resolved
stdlib/socketserver.pyi Show resolved Hide resolved
stdlib/socketserver.pyi Show resolved Hide resolved
stdlib/socketserver.pyi Show resolved Hide resolved
stdlib/socketserver.pyi Show resolved Hide resolved
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Looks good now, just one more question: Should the BaseServer.server_address attribute (on line 39) also be changed to be _socket._Address, to match the type passed in __init__?

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit f64807a into python:main Jan 12, 2023
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