Skip to content

Commit

Permalink
Don't warn about not turning partial function into function for build…
Browse files Browse the repository at this point in the history
…/enter/exit
  • Loading branch information
freider committed Feb 22, 2024
1 parent c7acc05 commit 1d1e624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modal/partial_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __get__(self, obj, objtype=None) -> _Function:
return function

def __del__(self):
if self.wrapped is False:
if (self.flags & _PartialFunctionFlags.FUNCTION) and self.wrapped is False:
logger.warning(
f"Method or web function {self.raw_f} was never turned into a function."
" Did you forget a @stub.function or @stub.cls decorator?"
Expand Down

0 comments on commit 1d1e624

Please sign in to comment.