Fix return type of Process.oneshot() (#6006)

This commit is contained in:
Nikita Sobolev
2021-09-05 22:03:45 +03:00
committed by GitHub
parent 96b5254056
commit 5d7e201784

View File

@@ -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): ...