FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix `UDPServer` to correctly inherit from `TCPServer` by PeterJCLaw · Pull Request #8542 · python/typeshed · GitHub

Repository navigation

Fix UDPServer to correctly inherit from TCPServer - #8542

Merged
AlexWaygood merged 2 commits into
python:masterfrom
PeterJCLaw:udp-server-is-a-tcp-server
Aug 13, 2022
Merged

AlexWaygood merged 2 commits into
python:masterfrom
PeterJCLaw:udp-server-is-a-tcp-server

Conversation

PeterJCLaw commented Aug 13, 2022 •
edited
Loading

Copy link
Copy Markdown
Contributor

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.

This comment has been minimized.

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 force-pushed the udp-server-is-a-tcp-server branch from 71782b2 to b144775 Compare August 13, 2022 12:04

This comment has been minimized.

PeterJCLaw marked this pull request as ready for review August 13, 2022 12:13

Copy link
Copy Markdown
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

AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks!

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 deleted the udp-server-is-a-tcp-server branch November 15, 2022 20:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL