mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-02 22:18:28 +08:00
Add __all__ part 2 (#13719)
--------- Co-authored-by: Avasam <samuel.06@hotmail.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
# TODO: missing from stub
|
||||
psutil.__all__
|
||||
psutil._common.__all__
|
||||
psutil._psposix.__all__
|
||||
|
||||
# Stubtest does not support these platforms
|
||||
psutil._psaix
|
||||
|
||||
@@ -283,3 +283,96 @@ def term_supports_colors(file: SupportsWrite[str] = ...) -> bool: ...
|
||||
def hilite(s: str, color: str | None = None, bold: bool = False) -> str: ...
|
||||
def print_color(s: str, color: str | None = None, bold: bool = False, file: SupportsWrite[str] = ...) -> None: ...
|
||||
def debug(msg) -> None: ...
|
||||
|
||||
__all__ = [
|
||||
# OS constants
|
||||
"FREEBSD",
|
||||
"BSD",
|
||||
"LINUX",
|
||||
"NETBSD",
|
||||
"OPENBSD",
|
||||
"MACOS",
|
||||
"OSX",
|
||||
"POSIX",
|
||||
"SUNOS",
|
||||
"WINDOWS",
|
||||
# connection constants
|
||||
"CONN_CLOSE",
|
||||
"CONN_CLOSE_WAIT",
|
||||
"CONN_CLOSING",
|
||||
"CONN_ESTABLISHED",
|
||||
"CONN_FIN_WAIT1",
|
||||
"CONN_FIN_WAIT2",
|
||||
"CONN_LAST_ACK",
|
||||
"CONN_LISTEN",
|
||||
"CONN_NONE",
|
||||
"CONN_SYN_RECV",
|
||||
"CONN_SYN_SENT",
|
||||
"CONN_TIME_WAIT",
|
||||
# net constants
|
||||
"NIC_DUPLEX_FULL",
|
||||
"NIC_DUPLEX_HALF",
|
||||
"NIC_DUPLEX_UNKNOWN",
|
||||
# process status constants
|
||||
"STATUS_DEAD",
|
||||
"STATUS_DISK_SLEEP",
|
||||
"STATUS_IDLE",
|
||||
"STATUS_LOCKED",
|
||||
"STATUS_RUNNING",
|
||||
"STATUS_SLEEPING",
|
||||
"STATUS_STOPPED",
|
||||
"STATUS_SUSPENDED",
|
||||
"STATUS_TRACING_STOP",
|
||||
"STATUS_WAITING",
|
||||
"STATUS_WAKE_KILL",
|
||||
"STATUS_WAKING",
|
||||
"STATUS_ZOMBIE",
|
||||
"STATUS_PARKED",
|
||||
# other constants
|
||||
"ENCODING",
|
||||
"ENCODING_ERRS",
|
||||
"AF_INET6",
|
||||
# named tuples
|
||||
"pconn",
|
||||
"pcputimes",
|
||||
"pctxsw",
|
||||
"pgids",
|
||||
"pio",
|
||||
"pionice",
|
||||
"popenfile",
|
||||
"pthread",
|
||||
"puids",
|
||||
"sconn",
|
||||
"scpustats",
|
||||
"sdiskio",
|
||||
"sdiskpart",
|
||||
"sdiskusage",
|
||||
"snetio",
|
||||
"snicaddr",
|
||||
"snicstats",
|
||||
"sswap",
|
||||
"suser",
|
||||
# utility functions
|
||||
"conn_tmap",
|
||||
"deprecated_method",
|
||||
"isfile_strict",
|
||||
"memoize",
|
||||
"parse_environ_block",
|
||||
"path_exists_strict",
|
||||
"usage_percent",
|
||||
"supports_ipv6",
|
||||
"sockfam_to_enum",
|
||||
"socktype_to_enum",
|
||||
"wrap_numbers",
|
||||
"open_text",
|
||||
"open_binary",
|
||||
"cat",
|
||||
"bcat",
|
||||
"bytes2human",
|
||||
"conn_to_ntuple",
|
||||
"debug",
|
||||
# shell utils
|
||||
"hilite",
|
||||
"term_supports_colors",
|
||||
"print_color",
|
||||
]
|
||||
|
||||
@@ -13,3 +13,5 @@ def wait_pid(
|
||||
): ...
|
||||
def disk_usage(path): ...
|
||||
def get_terminal_map(): ...
|
||||
|
||||
__all__ = ["pid_exists", "wait_pid", "disk_usage", "get_terminal_map"]
|
||||
|
||||
Reference in New Issue
Block a user