From 1a3ae3efc7f90100d0a723e35b7ed4bebebfbac1 Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Tue, 20 Sep 2022 09:15:47 -0400 Subject: [PATCH] `socket`: `sendmsg` can accept `None` for the address (#8771) Per the Python docs and socketmodule.c source, the address argument can be None. https://docs.python.org/3/library/socket.html#socket.socket.sendmsg --- stdlib/_socket.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_socket.pyi b/stdlib/_socket.pyi index 09dbaae3d..b2f77893d 100644 --- a/stdlib/_socket.pyi +++ b/stdlib/_socket.pyi @@ -624,7 +624,7 @@ class socket: __buffers: Iterable[ReadableBuffer], __ancdata: Iterable[_CMSGArg] = ..., __flags: int = ..., - __address: _Address = ..., + __address: _Address | None = ..., ) -> int: ... if sys.platform == "linux": def sendmsg_afalg(