Skip to content

Commit 0d02fc1

Browse files
committed
added missing type annotation to run_sync
1 parent 9e6837e commit 0d02fc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

piccolo/utils/sync.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
from __future__ import annotations
12
import asyncio
23
from concurrent.futures import ThreadPoolExecutor
4+
import typing as t
35

46

5-
def run_sync(coroutine):
7+
def run_sync(coroutine: t.Coroutine):
68
"""
7-
Run the coroutine synchronously - trying to accomodate as many edge cases
9+
Run the coroutine synchronously - trying to accommodate as many edge cases
810
as possible.
911
1012
1. When called within a coroutine.

0 commit comments

Comments
 (0)