Skip to content

Commit

Permalink
Populate FunctionHandleMetadata.method_handle_metadata in _Function _…
Browse files Browse the repository at this point in the history
…get_metadata (#2517)
  • Loading branch information
devennavani authored Nov 15, 2024
1 parent f0aeec9 commit 6cc9762
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modal/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,20 @@ def _get_metadata(self):
is_method=self._is_method,
class_parameter_info=self._class_parameter_info,
definition_id=self._definition_id,
method_handle_metadata={
method_name: api_pb2.FunctionHandleMetadata(
function_name=method_function._function_name,
function_type=get_function_type(method_function._is_generator),
web_url=method_function._web_url or "",
is_method=method_function._is_method,
definition_id=method_function._definition_id,
use_method_name=method_function._use_method_name,
)
for method_name, method_function in self._method_functions.items()
if method_function._function_name
}
if self._method_functions
else None,
)

def _check_no_web_url(self, fn_name: str):
Expand Down

0 comments on commit 6cc9762

Please sign in to comment.