Skip to content

Commit 9b050c7

Browse files
Fix stubs to match changes in trio
1 parent 0d09b30 commit 9b050c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

trio-stubs/lowlevel.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from typing import (
77
ContextManager,
88
Coroutine,
99
Generic,
10+
Iterator,
1011
Mapping,
1112
NoReturn,
1213
Optional,
@@ -82,6 +83,7 @@ class Task(metaclass=ABCMeta):
8283
def eventual_parent_nursery(self) -> Optional[Nursery]: ...
8384
@property
8485
def child_nurseries(self) -> Sequence[Nursery]: ...
86+
def iter_await_frames(self) -> Iterator[Tuple[FrameType, int]]: ...
8587

8688
async def checkpoint() -> None: ...
8789
async def checkpoint_if_cancelled() -> None: ...
@@ -185,7 +187,9 @@ class RunVar(Generic[_T], metaclass=ABCMeta):
185187

186188
# _core._thread_cache
187189
def start_thread_soon(
188-
fn: Callable[[], _T], deliver: Callable[[outcome.Outcome[_T]], None]
190+
fn: Callable[[], _T],
191+
deliver: Callable[[outcome.Outcome[_T]], None],
192+
name: Optional[str] = ...,
189193
) -> None: ...
190194

191195
# _subprocess

0 commit comments

Comments
 (0)