Skip to content

Commit 773e5a5

Browse files
style: fix mypy type annotation in test coverage utils
1 parent 1181f6a commit 773e5a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/code_utils/test_coverage_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
from typing import Any
4+
35
from codeflash.code_utils.coverage_utils import build_fully_qualified_name, extract_dependent_function
46
from codeflash.models.function_types import FunctionParent
57
from codeflash.models.models import CodeOptimizationContext, CodeString, CodeStringsMarkdown
@@ -140,7 +142,7 @@ def test_async_functions_extracted(self) -> None:
140142

141143

142144
class TestGrabDependentFunctionFromCoverageData:
143-
def _make_func_data(self, coverage_pct: float = 80.0) -> dict:
145+
def _make_func_data(self, coverage_pct: float = 80.0) -> dict[str, Any]:
144146
return {
145147
"summary": {"percent_covered": coverage_pct},
146148
"executed_lines": [1, 2, 3],

0 commit comments

Comments
 (0)