File tree 1 file changed +4
-5
lines changed 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ class BaseServer:
70
70
def close_request (self , request : _RequestType ) -> None : ... # undocumented
71
71
72
72
class TCPServer (BaseServer ):
73
- allow_reuse_port : bool
73
+ if sys .version_info >= (3 , 11 ):
74
+ allow_reuse_port : bool
74
75
request_queue_size : int
75
76
def __init__ (
76
77
self : Self ,
@@ -80,11 +81,9 @@ class TCPServer(BaseServer):
80
81
) -> None : ...
81
82
def get_request (self ) -> tuple [_socket , Any ]: ...
82
83
83
- class UDPServer (BaseServer ):
84
- if sys .version_info >= (3 , 11 ):
85
- allow_reuse_port : bool
84
+ class UDPServer (TCPServer ):
86
85
max_packet_size : ClassVar [int ]
87
- def get_request (self ) -> tuple [tuple [bytes , _socket ], Any ]: ...
86
+ def get_request (self ) -> tuple [tuple [bytes , _socket ], Any ]: ... # type: ignore[override]
88
87
89
88
if sys .platform != "win32" :
90
89
class UnixStreamServer (BaseServer ):
You can’t perform that action at this time.
0 commit comments