AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Fix typing of @coroutine decorator
Reinier van der Leer521305f8e9e7
diff --git a/autogpts/autogpt/autogpt/core/runner/client_lib/utils.py b/autogpts/autogpt/autogpt/core/runner/client_lib/utils.pyindex 39b5135f0e..ebb03edb39 100644--- a/autogpts/autogpt/autogpt/core/runner/client_lib/utils.py+++ b/autogpts/autogpt/autogpt/core/runner/client_lib/utils.py@@ -1,7 +1,7 @@import asyncioimport functoolsfrom bdb import BdbQuit-from typing import Callable, ParamSpec, TypeVar+from typing import Any, Callable, Coroutine, ParamSpec, TypeVarimport click@@ -53,9 +53,9 @@ def handle_exceptions(return wrapped-def coroutine(f):+def coroutine(f: Callable[P, Coroutine[Any, Any, T]]) -> Callable[P, T]:@functools.wraps(f)- def wrapper(*args, **kwargs):+ def wrapper(*args: P.args, **kwargs: P.kwargs):return asyncio.run(f(*args, **kwargs))return wrapper