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
This commit is contained in:
Chris Cotter
2022-09-20 09:15:47 -04:00
committed by GitHub
parent efeff93d21
commit 1a3ae3efc7

View File

@@ -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(