Upgrade black version (#7089)

This commit is contained in:
Shantanu
2022-01-30 16:27:06 -08:00
committed by GitHub
parent 9854926289
commit b88a6f19cd
173 changed files with 496 additions and 2 deletions

View File

@@ -154,9 +154,11 @@ class Process:
def cpu_affinity(self, cpus: list[int] | None = ...) -> list[int] | None: ...
if sys.platform == "linux":
def cpu_num(self) -> int: ...
def environ(self) -> dict[str, str]: ...
if sys.platform == "win32":
def num_handles(self) -> int: ...
def num_ctx_switches(self) -> pctxsw: ...
def num_threads(self) -> int: ...
def threads(self) -> list[pthread]: ...
@@ -169,6 +171,7 @@ class Process:
def memory_percent(self, memtype: str = ...) -> float: ...
if sys.platform != "darwin":
def memory_maps(self, grouped: bool = ...): ...
def open_files(self) -> list[popenfile]: ...
def connections(self, kind: str = ...) -> list[pconn]: ...
def send_signal(self, sig: int) -> None: ...

View File

@@ -141,12 +141,14 @@ class Process:
def status(self): ...
def io_counters(self): ...
def cwd(self): ...
class nt_mmap_grouped(NamedTuple):
path: Any
rss: Any
private: Any
ref_count: Any
shadow_count: Any
class nt_mmap_ext(NamedTuple):
addr: Any
perms: Any