@@ -200,7 +200,7 @@ def get_benchmark_timings(trace_path: Path) -> dict[BenchmarkKey, int]:
200200
201201 # Pytest hooks
202202 @pytest .hookimpl
203- def pytest_sessionfinish (self , session , exitstatus ) -> None : # noqa: ANN001
203+ def pytest_sessionfinish (self , session , exitstatus ) -> None :
204204 """Execute after whole test run is completed."""
205205 # Write any remaining benchmark timings to the database
206206 codeflash_trace .close ()
@@ -236,20 +236,20 @@ class Benchmark: # noqa: D106
236236 def __init__ (self , request : pytest .FixtureRequest ) -> None :
237237 self .request = request
238238
239- def __call__ (self , func , * args , ** kwargs ): # noqa: ANN001, ANN002, ANN003, ANN204
239+ def __call__ (self , func , * args , ** kwargs ): # noqa: ANN002, ANN003, ANN204
240240 """Handle both direct function calls and decorator usage."""
241241 if args or kwargs :
242242 # Used as benchmark(func, *args, **kwargs)
243243 return self ._run_benchmark (func , * args , ** kwargs )
244244
245245 # Used as @benchmark decorator
246- def wrapped_func (* args , ** kwargs ): # noqa: ANN002, ANN003, ANN202
246+ def wrapped_func (* args , ** kwargs ): # noqa: ANN002, ANN003
247247 return func (* args , ** kwargs )
248248
249249 self ._run_benchmark (func )
250250 return wrapped_func
251251
252- def _run_benchmark (self , func , * args , ** kwargs ): # noqa: ANN002, ANN003, ANN202
252+ def _run_benchmark (self , func , * args , ** kwargs ): # noqa: ANN002, ANN003
253253 """Actual benchmark implementation."""
254254 node_path = getattr (self .request .node , "path" , None ) or getattr (self .request .node , "fspath" , None )
255255 if node_path is None :
0 commit comments