11import sys
22
33if sys .platform == "darwin" :
4- from _typeshed import Incomplete , StrOrBytesPath
4+ from _typeshed import StrOrBytesPath
55 from collections .abc import Sequence
66 from socket import AddressFamily , SocketKind
77 from typing import Final , TypeVar
@@ -11,14 +11,14 @@ if sys.platform == "darwin":
1111 AF_LINK : Final = 18
1212
1313 def getpagesize () -> int : ...
14- def net_if_addrs (): ...
14+ def net_if_addrs () -> list [ tuple [ str , int , str , str | None , str | None , str | None ]] : ...
1515 def net_if_flags (nic_name : str , / ) -> list [str ]: ...
1616 def net_if_is_running (nic_name : str , / ) -> bool : ...
1717 def net_if_mtu (nic_name : str , / ) -> int : ...
1818 def proc_priority_get (pid : int , / ) -> int : ...
1919 def proc_priority_set (pid : int , priority : int , / ) -> None : ...
20- def net_if_duplex_speed (nic_name : str , / ): ...
21- def users () -> list [tuple [Incomplete , ... ]]: ...
20+ def net_if_duplex_speed (nic_name : str , / ) -> tuple [ int , int ] : ... # It's actually list of 2 elements
21+ def users () -> list [tuple [str , str , str , float , int ]]: ...
2222 def proc_is_zombie (pid : int , / ) -> bool : ...
2323
2424 version : Final [int ]
0 commit comments