Skip to content

Commit 66eac2a

Browse files
committed
just bool it
1 parent f2c0740 commit 66eac2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/discovery/functions_to_optimize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def visit_FunctionDef(self, node: cst.FunctionDef) -> None:
8585
parents=list(reversed(ast_parents)),
8686
starting_line=pos.start.line,
8787
ending_line=pos.end.line,
88-
is_async=node.asynchronous is not None,
88+
is_async=bool(node.asynchronous),
8989
)
9090
)
9191

0 commit comments

Comments
 (0)