mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Fix return type of Process.oneshot() (#6006)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
from typing import Any, ContextManager
|
||||
|
||||
from ._common import (
|
||||
AIX as AIX,
|
||||
@@ -87,7 +87,7 @@ class Process:
|
||||
def __hash__(self): ...
|
||||
@property
|
||||
def pid(self): ...
|
||||
def oneshot(self) -> None: ...
|
||||
def oneshot(self) -> ContextManager[None]: ...
|
||||
def as_dict(self, attrs: Any | None = ..., ad_value: Any | None = ...): ...
|
||||
def parent(self): ...
|
||||
def parents(self): ...
|
||||
|
||||
Reference in New Issue
Block a user