We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2c0740 commit 66eac2aCopy full SHA for 66eac2a
codeflash/discovery/functions_to_optimize.py
@@ -85,7 +85,7 @@ def visit_FunctionDef(self, node: cst.FunctionDef) -> None:
85
parents=list(reversed(ast_parents)),
86
starting_line=pos.start.line,
87
ending_line=pos.end.line,
88
- is_async=node.asynchronous is not None,
+ is_async=bool(node.asynchronous),
89
)
90
91
0 commit comments