Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/av-historical-eps-error-message
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone authored May 13, 2024
2 parents 0d427d1 + 10dddfd commit f7a4c60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ def get_function_hint_type_list(cls, func: Callable) -> List[Type]:
hint_type_list.append(parameter.annotation)

if return_type:
if not issubclass(return_type, OBBject):
raise ValueError("Return type must be an OBBject.")
hint_type = get_args(get_type_hints(return_type)["results"])[0]
hint_type_list.append(hint_type)

Expand Down

0 comments on commit f7a4c60

Please sign in to comment.