mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
psutil: sconn.pid can be None (#9853)
Found out about this the hard way.
The code path that allows None is here: 2da9950223/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