Skip to content

Commit f2ed14d

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

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
@@ -7,6 +7,7 @@ from typing import (
77
ContextManager,
88
Coroutine,
99
Generic,
10+
Iterator,
1011
Mapping,
1112
NoReturn,
1213
Optional,
@@ -19,6 +20,7 @@ from typing import (
1920
final,
2021
cast,
2122
)
23+
from types import FrameType
2224
from abc import ABCMeta
2325
from _typeshed import StrOrBytesPath
2426
from trio_typing import Nursery, takes_callable_and_args
@@ -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)