mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-01 11:14:38 +08:00
update psutil.Process.parent() return type (#12767)
per `psutil.Process.parent()`'s docstring, it may return `None`. https://github.com/giampaolo/psutil/blob/0a71d0e404ddaab32b5222351fd2292802e3b131/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