Skip to content

Commit

Permalink
allow default value to be Any
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Feb 28, 2024
1 parent 5b25e0f commit 8d1c064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatlab/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def extract_model_from_function(func_name: str, function: Callable) -> Type[Base
raise Exception(f"`{name}` parameter of {func_name} must have a JSON-serializable type annotation")
type_annotation = param.annotation

default_value = ...
default_value: Any = ...

# determine if there is a default value
if param.default != inspect.Parameter.empty:
Expand Down

0 comments on commit 8d1c064

Please sign in to comment.