Skip to content

Commit b3ec5a1

Browse files
authored
Merge pull request #3224 from TeamSpen210/start-non-none
Nursery.start() doesn't specifically return None
2 parents 68014ec + 776843d commit b3ec5a1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/3224.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix incorrect return type hint for :meth:`Nursery.start() <trio.Nursery.start>`.

src/trio/_core/_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ async def start( # type: ignore[explicit-any]
13071307
async_fn: Callable[..., Awaitable[object]],
13081308
*args: object,
13091309
name: object = None,
1310-
) -> Any | None:
1310+
) -> Any:
13111311
r"""Creates and initializes a child task.
13121312
13131313
Like :meth:`start_soon`, but blocks until the new task has

0 commit comments

Comments
 (0)