Skip to content

Commit 803fb64

Browse files
github-actions[bot]Saurabh Misra
andcommitted
fix: add missing type params for dict in _write_maven_properties and _write_gradle_properties
Co-authored-by: Saurabh Misra <undefined@users.noreply.github.com>
1 parent be616d1 commit 803fb64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

codeflash/setup/config_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from __future__ import annotations
99

1010
import json
11-
from typing import TYPE_CHECKING
11+
from typing import TYPE_CHECKING, Any
1212

1313
import tomlkit
1414

@@ -124,7 +124,7 @@ def _write_java_build_config(project_root: Path, config: CodeflashConfig) -> tup
124124
return _write_gradle_properties(gradle_props_path, non_default)
125125

126126

127-
def _write_maven_properties(pom_path: Path, config: dict) -> tuple[bool, str]:
127+
def _write_maven_properties(pom_path: Path, config: dict[str, Any]) -> tuple[bool, str]:
128128
"""Add codeflash.* properties to pom.xml <properties> section."""
129129
import xml.etree.ElementTree as ET
130130

@@ -171,7 +171,7 @@ def _write_maven_properties(pom_path: Path, config: dict) -> tuple[bool, str]:
171171
return False, f"Failed to write Maven properties: {e}"
172172

173173

174-
def _write_gradle_properties(props_path: Path, config: dict) -> tuple[bool, str]:
174+
def _write_gradle_properties(props_path: Path, config: dict[str, Any]) -> tuple[bool, str]:
175175
"""Add codeflash.* entries to gradle.properties."""
176176
key_map = {
177177
"module-root": "moduleRoot",

0 commit comments

Comments
 (0)