mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 04:25:50 +08:00
psutil: sconn.pid can be None (#9853)
Found out about this the hard way. The code path that allows None is here: https://github.com/giampaolo/psutil/blob/2da99502238852f18f74db05304e67a01ee77005/psutil/_pslinux.py#L923
This commit is contained in:
@@ -117,7 +117,7 @@ class sconn(NamedTuple):
|
||||
laddr: addr | tuple[()]
|
||||
raddr: addr | tuple[()]
|
||||
status: str
|
||||
pid: int
|
||||
pid: int | None
|
||||
|
||||
class snicaddr(NamedTuple):
|
||||
family: AddressFamily
|
||||
|
||||
Reference in New Issue
Block a user