Skip to content

Commit 7a9bded

Browse files
committed
Fix typo
1 parent 8c0aff9 commit 7a9bded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/taskgroups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def create_task(self, coro, *, name=None, context=None):
143143
raise RuntimeError(f"TaskGroup {self!r} has not been entered")
144144
if self._exiting and self._unfinished_tasks == 0:
145145
raise RuntimeError(f"TaskGroup {self!r} is finished")
146-
if cotext is None:
146+
if context is None:
147147
task = self._loop.create_task(coro)
148148
else:
149149
task = self._loop.create_task(coro, context=context)

0 commit comments

Comments
 (0)