Skip to content

Fix UDPServer to correctly inherit from TCPServer #8542

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
Aug 13, 2022

Conversation

PeterJCLaw
Copy link
Contributor

@PeterJCLaw PeterJCLaw commented Aug 13, 2022

This is documented and implemented as such, and means that the signatures of some of the methods (notably __init__) actually differ from those on BaseServer.

This also fixes the definition of the (new in Python 3.11, via python/cpython#30072) allow_reuse_port attribute on these classes that would otherwise have been in conflict with the inheritance change.

This appears to have been added imprecisely to TCPServer, even
though the similar entry on UDPServer is guarded.
@github-actions

This comment has been minimized.

@PeterJCLaw PeterJCLaw force-pushed the udp-server-is-a-tcp-server branch from b8ea8d4 to ef642e0 Compare August 13, 2022 12:02
This is documented and implemented as such, and means that the
signatures of some of the methods (notably __init__) actually
differ from those on BaseServer.
@PeterJCLaw PeterJCLaw force-pushed the udp-server-is-a-tcp-server branch from 71782b2 to b144775 Compare August 13, 2022 12:04
@github-actions

This comment has been minimized.

@PeterJCLaw PeterJCLaw marked this pull request as ready for review August 13, 2022 12:13
@github-actions
Copy link
Contributor

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

PeterJCLaw added a commit to PeterJCLaw/python-osc that referenced this pull request Aug 13, 2022
PeterJCLaw added a commit to PeterJCLaw/python-osc that referenced this pull request Aug 13, 2022
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.

Thanks!

@AlexWaygood AlexWaygood merged commit 3623f92 into python:master Aug 13, 2022
PeterJCLaw added a commit to PeterJCLaw/python-osc that referenced this pull request Aug 23, 2022
@PeterJCLaw PeterJCLaw deleted the udp-server-is-a-tcp-server branch November 15, 2022 20:06
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