refactor(types): Phase 4 type hint sweep — core modules

This commit is contained in:
2026-02-28 15:13:55 -05:00
parent ca04026db5
commit 46c2f9a0ca
10 changed files with 52 additions and 42 deletions

View File

@@ -6,7 +6,7 @@ import os
import session_logger # Import session_logger
class GeminiCliAdapter:
def __init__(self, binary_path="gemini"):
def __init__(self, binary_path: str = "gemini") -> None:
self.binary_path = binary_path
self.last_usage = None
self.session_id = None
@@ -23,7 +23,7 @@ class GeminiCliAdapter:
estimated_tokens = total_chars // 4
return estimated_tokens
def send(self, message, safety_settings=None, system_instruction=None, model: str = None):
def send(self, message: str, safety_settings: list | None = None, system_instruction: str | None = None, model: str | None = None) -> str:
"""
Sends a message to the Gemini CLI and processes the streaming JSON output.
Logs the CLI call details using session_logger.log_cli_call.