Skip to content

Commit

Permalink
fix: added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed Nov 21, 2024
1 parent 5213dbd commit 917356e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/platform/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@
from deeporigin.utils.core import _get_method


@beartype
def add_functions_to_module(
module: str,
api_name: str,
) -> set:
"""utility function to dynamically add functions to a module
This function works by calling setattr on the module.
Args:
module (str): name of the module
api_name (str): name of the API
Returns:
set of methods that were added
"""
methods = _get_client_methods(
_get_api_client(
api_name=api_name,
Expand Down

0 comments on commit 917356e

Please sign in to comment.