Skip to content

Commit

Permalink
Fix mkdocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHC committed Aug 2, 2023
1 parent 0876d6f commit 1f68344
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions llm_strategy/llm_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,25 @@ def apply_decorator(f: F_types, decorator) -> F_types:
This is useful when we want to apply a decorator to a function that is a classmethod, staticmethod, property,
or a method of a class.
Args:
f: The function to decorate.
decorator: The decorator to apply.
Parameters
----------
Returns:
f: F_types
The function to decorate.
decorator: Callable
The decorator to apply.
Returns
-------
F_types
The decorated function.
Raises
------
ValueError
If the function is a classmethod, staticmethod, property, or a method of a class.
"""
specific_llm_function: object
if isinstance(f, classmethod):
Expand Down

0 comments on commit 1f68344

Please sign in to comment.