Skip to content

Commit

Permalink
Fix stubs to match changes in trio
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVanlaer committed Jul 21, 2023
1 parent 0d09b30 commit f2ed14d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trio-stubs/lowlevel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ from typing import (
ContextManager,
Coroutine,
Generic,
Iterator,
Mapping,
NoReturn,
Optional,
Expand All @@ -19,6 +20,7 @@ from typing import (
final,
cast,
)
from types import FrameType
from abc import ABCMeta
from _typeshed import StrOrBytesPath
from trio_typing import Nursery, takes_callable_and_args
Expand Down Expand Up @@ -82,6 +84,7 @@ class Task(metaclass=ABCMeta):
def eventual_parent_nursery(self) -> Optional[Nursery]: ...
@property
def child_nurseries(self) -> Sequence[Nursery]: ...
def iter_await_frames(self) -> Iterator[Tuple[FrameType, int]]: ...

async def checkpoint() -> None: ...
async def checkpoint_if_cancelled() -> None: ...
Expand Down Expand Up @@ -185,7 +188,9 @@ class RunVar(Generic[_T], metaclass=ABCMeta):

# _core._thread_cache
def start_thread_soon(
fn: Callable[[], _T], deliver: Callable[[outcome.Outcome[_T]], None]
fn: Callable[[], _T],
deliver: Callable[[outcome.Outcome[_T]], None],
name: Optional[str] = ...,
) -> None: ...

# _subprocess
Expand Down

0 comments on commit f2ed14d

Please sign in to comment.