From 5c29784b86a9802b06876cf3d4ea1d357d355c59 Mon Sep 17 00:00:00 2001 From: Ezzeri Esa Date: Wed, 14 Feb 2024 12:20:19 -0800 Subject: [PATCH] remove type ignore --- modal/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modal/functions.py b/modal/functions.py index 36858d4718..d1b62bfd5e 100644 --- a/modal/functions.py +++ b/modal/functions.py @@ -1263,7 +1263,7 @@ async def remote_gen(self, *args, **kwargs) -> AsyncGenerator[Any, None]: async for item in self._call_generator(args, kwargs): # type: ignore yield item - def call(self, *args, **kwargs) -> Awaitable[Any]: # type: ignore[return] + def call(self, *args, **kwargs) -> None: """Deprecated. Use `f.remote` or `f.remote_gen` instead.""" # TODO: Generics/TypeVars if self._is_generator: @@ -1389,7 +1389,7 @@ async def get_current_stats(self) -> FunctionStats: Function = synchronize_api(_Function) -class _FunctionCall(_Object, type_prefix="fc"): # type: ignore[call-arg] +class _FunctionCall(_Object, type_prefix="fc"): """A reference to an executed function call. Constructed using `.spawn(...)` on a Modal function with the same