Skip to content

Commit

Permalink
remove type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
savarin committed Feb 14, 2024
1 parent 255cad3 commit 5c29784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5c29784

Please sign in to comment.