Skip to content

Commit 68e5091

Browse files
committed
try without --benchmark
1 parent 16c653f commit 68e5091

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ jobs:
6868
id: optimize_code
6969
run: |
7070
source .venv/bin/activate
71-
poetry run codeflash --benchmark
71+
poetry run codeflash

codeflash/discovery/functions_to_optimize.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,13 @@ def visit_ClassDef(self, node: ast.ClassDef) -> None:
358358
for decorator in body_node.decorator_list
359359
):
360360
self.is_classmethod = True
361-
# elif any(
362-
# isinstance(decorator, ast.Name) and decorator.id == "staticmethod"
363-
# for decorator in body_node.decorator_list
364-
# ):
365-
# self.is_staticmethod = True
361+
elif any(
362+
isinstance(decorator, ast.Name) and decorator.id == "staticmethod"
363+
for decorator in body_node.decorator_list
364+
):
365+
self.is_staticmethod = True
366366
return
367-
else:
367+
elif self.line_no:
368368
# If we have line number info, check if class has a static method with the same line number
369369
# This way, if we don't have the class name, we can still find the static method
370370
for body_node in node.body:

0 commit comments

Comments
 (0)