From 3807e2def659888010ee401bd517d6a9e93eefc1 Mon Sep 17 00:00:00 2001 From: beauxq Date: Mon, 9 Mar 2026 13:34:56 -0700 Subject: [PATCH] psutil: remove empty tuple from `laddr` The PR that introduced this https://github.com/python/typeshed/pull/6669 only showed results for `raddr`, not `laddr` The documentation https://psutil.readthedocs.io/en/latest/#psutil.net_connections says that `raddr` can be the empty tuple. It does not say that `laddr` can be the empty tuple. --- stubs/psutil/psutil/_ntuples.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/psutil/psutil/_ntuples.pyi b/stubs/psutil/psutil/_ntuples.pyi index b61b6ac2db36..d25a613031c4 100644 --- a/stubs/psutil/psutil/_ntuples.pyi +++ b/stubs/psutil/psutil/_ntuples.pyi @@ -57,7 +57,7 @@ class sconn(NamedTuple): fd: int family: AddressFamily type: SocketKind - laddr: addr | tuple[()] + laddr: addr raddr: addr | tuple[()] status: str pid: int | None