Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
One more nit
  • Loading branch information
AlexWaygood authored Jan 12, 2023
commit bb8aacb5afda2b176e5dab91dbd35fcb53cb83b1
12 changes: 6 additions & 6 deletions stdlib/socketserver.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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: tuple[str, int]
server_address: tuple[int, int]
socket: _socket
allow_reuse_address: bool
request_queue_size: int
Expand Down Expand Up @@ -137,14 +137,14 @@ if sys.platform != "win32":
class ThreadingUnixDatagramServer(ThreadingMixIn, UnixDatagramServer): ...

class BaseRequestHandler:
# Those are technically of types, respectively:
# * _RequestType
# * _RetAddress
# But there are some concerns that having unions here would cause
# `request` is technically of type _RequestType,
# but there are some concerns that having a union here would cause
# too much inconvenience to people using it (see
# https://github.com/python/typeshed/pull/384#issuecomment-234649696)
#
# Note also that _RetAddress is also just an alias for `Any`
request: Any
client_address: Any
client_address: _RetAddress
server: BaseServer
def __init__(self, request: _RequestType, client_address: _RetAddress, server: BaseServer) -> None: ...
def setup(self) -> None: ...
Expand Down