mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user