Skip to content

Commit

Permalink
various attributes that are added by TCPServer
Browse files Browse the repository at this point in the history
  • Loading branch information
tungol committed Dec 15, 2024
1 parent ba5a187 commit d683506
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stdlib/socketserver.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ _AfInetAddress: TypeAlias = tuple[str | bytes | bytearray, int] # address accep

# This can possibly be generic at some point:
class BaseServer:
address_family: int
server_address: _Address
socket: _socket
allow_reuse_address: bool
request_queue_size: int
socket_type: int
timeout: float | None
RequestHandlerClass: Callable[[Any, _RetAddress, Self], BaseRequestHandler]
def __init__(
Expand All @@ -69,6 +64,11 @@ class BaseServer:
def close_request(self, request: _RequestType) -> None: ... # undocumented

class TCPServer(BaseServer):
address_family: int
socket: _socket
allow_reuse_address: bool
request_queue_size: int
socket_type: int
if sys.version_info >= (3, 11):
allow_reuse_port: bool
server_address: _AfInetAddress
Expand Down

0 comments on commit d683506

Please sign in to comment.