Skip to content

Commit 1b66910

Browse files
authored
fix superclass for UnixDatagramServer and UnixStreamServer (#11115)
1 parent c8a8199 commit 1b66910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/socketserver.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class UDPServer(TCPServer):
8686
def get_request(self) -> tuple[tuple[bytes, _socket], _RetAddress]: ... # type: ignore[override]
8787

8888
if sys.platform != "win32":
89-
class UnixStreamServer(BaseServer):
89+
class UnixStreamServer(TCPServer):
9090
server_address: _AfUnixAddress # type: ignore[assignment]
9191
def __init__(
9292
self,
@@ -95,7 +95,7 @@ if sys.platform != "win32":
9595
bind_and_activate: bool = True,
9696
) -> None: ...
9797

98-
class UnixDatagramServer(BaseServer):
98+
class UnixDatagramServer(UDPServer):
9999
server_address: _AfUnixAddress # type: ignore[assignment]
100100
def __init__(
101101
self,

0 commit comments

Comments
 (0)