Skip to content

Commit 0c08b28

Browse files
mashraf-222claude
andcommitted
fix: resolve mypy type errors in resolve_config_onto_args and main
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bc6444a commit 0c08b28

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

codeflash/cli_cmds/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from argparse import SUPPRESS, ArgumentParser
77
from functools import lru_cache
88
from pathlib import Path
9-
from typing import TYPE_CHECKING
9+
from typing import TYPE_CHECKING, Any
1010

1111
from codeflash.cli_cmds import logging_config
1212
from codeflash.cli_cmds.console import apologize_and_exit, logger
@@ -113,7 +113,9 @@ def process_pyproject_config(args: Namespace) -> Namespace:
113113
return handle_optimize_all_arg_parsing(args)
114114

115115

116-
def resolve_config_onto_args(args: Namespace, config: dict, config_path: Path, language: Language | None) -> Namespace:
116+
def resolve_config_onto_args(
117+
args: Namespace, config: dict[str, Any], config_path: Path, language: Language | None
118+
) -> Namespace:
117119
supported_keys = [
118120
"module_root",
119121
"tests_root",

codeflash/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def main() -> None:
151151
pass_args.all = pass_args.module_root
152152
else:
153153
# --all /specific/path: preserve the user's path
154-
pass_args.all = Path(original_all).resolve()
154+
pass_args.all = Path(str(original_all)).resolve()
155155

156156
if not env_utils.check_formatter_installed(pass_args.formatter_cmds):
157157
logger.info("Skipping %s: formatter not installed", lang_name)

0 commit comments

Comments
 (0)