update psutil.Process.parent() return type (#12767)

per `psutil.Process.parent()`'s docstring, it may return `None`.

0a71d0e404/psutil/__init__.py (L574)
This commit is contained in:
Cal Jacobson
2024-10-10 00:18:35 -05:00
committed by GitHub
parent f83b6fadbe
commit 3f04e4d65b

View File

@@ -177,7 +177,7 @@ class Process:
def as_dict(
self, attrs: list[str] | tuple[str, ...] | set[str] | frozenset[str] | None = None, ad_value: Incomplete | None = None
) -> dict[str, Any]: ...
def parent(self) -> Process: ...
def parent(self) -> Process | None: ...
def parents(self) -> list[Process]: ...
def is_running(self) -> bool: ...
def ppid(self) -> int: ...