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

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
9 changes: 4 additions & 5 deletions stdlib/socketserver.pyi
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
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class BaseServer:
def close_request(self, request: _RequestType) -> None: ... # undocumented

class TCPServer(BaseServer):
allow_reuse_port: bool
if sys.version_info >= (3, 11):
allow_reuse_port: bool
request_queue_size: int
def __init__(
self: Self,
Expand All @@ -80,11 +81,9 @@ class TCPServer(BaseServer):
) -> None: ...
def get_request(self) -> tuple[_socket, Any]: ...

class UDPServer(BaseServer):
if sys.version_info >= (3, 11):
allow_reuse_port: bool
class UDPServer(TCPServer):
max_packet_size: ClassVar[int]
def get_request(self) -> tuple[tuple[bytes, _socket], Any]: ...
def get_request(self) -> tuple[tuple[bytes, _socket], Any]: ... # type: ignore[override]

if sys.platform != "win32":
class UnixStreamServer(BaseServer):
Expand Down

Back | FazBrowse Home | New Git URL