Skip to content

Commit edb9e5f

Browse files
committed
Use older syntax in iprocessexecutor to make it compatible with python 3.10+
1 parent 2ff5c3b commit edb9e5f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

finecode_extension_api/finecode_extension_api/interfaces/iprocessexecutor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
from asyncio import BaseProtocol
33

44

5+
T = typing.TypeVar('T')
6+
P = typing.ParamSpec('P')
7+
8+
59
class IProcessExecutor(BaseProtocol):
6-
async def submit[T, **P](
10+
async def submit(
711
self, func: typing.Callable[P, T], *args: P.args, **kwargs: P.kwargs
812
): ...

0 commit comments

Comments
 (0)