Skip to content

Commit 0890d5b

Browse files
committed
static method
1 parent 6c1c2a4 commit 0890d5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/code_utils/code_replacer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def _uses_benchmark_fixture(self, node: Union[ast.FunctionDef, ast.AsyncFunction
4343
# Check function body for benchmark usage
4444
return any(isinstance(stmt, ast.Call) and self._is_benchmark_call(stmt) for stmt in ast.walk(node))
4545

46-
def _is_benchmark_marker(self, decorator: ast.expr) -> bool:
46+
@staticmethod
47+
def _is_benchmark_marker(decorator: ast.expr) -> bool:
4748
"""Check if decorator is a benchmark-related pytest marker."""
4849
if isinstance(decorator, ast.Call):
4950
if isinstance(decorator.func, ast.Attribute):

0 commit comments

Comments
 (0)