Fix type checking errors in resolver directory (#6738)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2025-02-18 20:13:33 -05:00
committed by GitHub
parent 1a7003a705
commit f4e5fb2873
13 changed files with 209 additions and 230 deletions

View File

@@ -5,6 +5,7 @@ import shutil
import subprocess
import jinja2
from pydantic import SecretStr
from openhands.core.config import LLMConfig
from openhands.core.logger import openhands_logger as logger
@@ -543,7 +544,7 @@ def process_all_successful_issues(
)
def main():
def main() -> None:
parser = argparse.ArgumentParser(
description='Send a pull request to Github or Gitlab.'
)
@@ -641,7 +642,7 @@ def main():
api_key = my_args.llm_api_key or os.environ['LLM_API_KEY']
llm_config = LLMConfig(
model=my_args.llm_model or os.environ['LLM_MODEL'],
api_key=str(api_key) if api_key else None,
api_key=SecretStr(api_key) if api_key else None,
base_url=my_args.llm_base_url or os.environ.get('LLM_BASE_URL', None),
)