Skip to content

Commit 3807e2d

Browse files
committed
psutil: remove empty tuple from laddr
The PR that introduced this #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.
1 parent a1c4ca3 commit 3807e2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stubs/psutil/psutil/_ntuples.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class sconn(NamedTuple):
5757
fd: int
5858
family: AddressFamily
5959
type: SocketKind
60-
laddr: addr | tuple[()]
60+
laddr: addr
6161
raddr: addr | tuple[()]
6262
status: str
6363
pid: int | None

0 commit comments

Comments
 (0)