update types

This commit is contained in:
vbarda
2024-07-22 20:48:21 -04:00
parent ed9c015d24
commit fd8f9e87dc
+2 -1
View File
@@ -6,6 +6,7 @@ from contextvars import copy_context
from types import TracebackType
from typing import (
AsyncContextManager,
Awaitable,
Callable,
ContextManager,
Optional,
@@ -102,7 +103,7 @@ class AsyncBackgroundExecutor(AsyncContextManager):
def submit(
self,
fn: Callable[P, T],
fn: Callable[P, Awaitable[T]],
*args: P.args,
__name__: Optional[str] = None,
__cancel_on_exit__: bool = False,