Skip to content

Commit 2adfc8e

Browse files
Fix stubs to match changes in trio
1 parent 0d09b30 commit 2adfc8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

trio-stubs/lowlevel.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ from typing import (
66
Callable,
77
ContextManager,
88
Coroutine,
9+
FrameType,
910
Generic,
11+
Iterator,
1012
Mapping,
1113
NoReturn,
1214
Optional,
@@ -82,6 +84,7 @@ class Task(metaclass=ABCMeta):
8284
def eventual_parent_nursery(self) -> Optional[Nursery]: ...
8385
@property
8486
def child_nurseries(self) -> Sequence[Nursery]: ...
87+
def iter_await_frames(self) -> Iterator[Tuple[FrameType, int]]: ...
8588

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

186189
# _core._thread_cache
187190
def start_thread_soon(
188-
fn: Callable[[], _T], deliver: Callable[[outcome.Outcome[_T]], None]
191+
fn: Callable[[], _T],
192+
deliver: Callable[[outcome.Outcome[_T]], None],
193+
name: Optional[str] = ...,
189194
) -> None: ...
190195

191196
# _subprocess

0 commit comments

Comments
 (0)