Skip to content

Commit

Permalink
try fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed Jun 6, 2024
1 parent 0fced00 commit 63fd05c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metaflow/runner/click_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ def visit_ClassDef(self, node):
):
if node.decorator_list:
for each_decorator in node.decorator_list:
decorator_name = each_decorator.func.id
if isinstance(each_decorator, ast.Call):
decorator_name = each_decorator.func.id
elif isinstance(each_decorator, ast.Name):
decorator_name = each_decorator.id
if decorator_name in FLOW_DECORATORS_DESC_DICT:
class_name = FLOW_DECORATORS_DESC_DICT[decorator_name]
options = get_options_from_classname(class_name)
Expand Down

0 comments on commit 63fd05c

Please sign in to comment.