mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
fixed type errors
This commit is contained in:
parent
b0f77b67cc
commit
8ce86f4267
18 changed files with 130 additions and 69 deletions
|
|
@ -4,7 +4,7 @@ import asyncio
|
|||
import os
|
||||
import json
|
||||
import logging
|
||||
from typing import AsyncGenerator, Optional, Dict, List
|
||||
from typing import AsyncGenerator, Optional, Dict, List, Any
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ class CLISession:
|
|||
logger.debug(f"Non-JSON output: {line_str[:100]}")
|
||||
yield {"type": "raw", "content": line_str}
|
||||
|
||||
def _extract_session_id(self, event: Dict) -> Optional[str]:
|
||||
def _extract_session_id(self, event: Any) -> Optional[str]:
|
||||
"""Extract session ID from CLI event."""
|
||||
if not isinstance(event, dict):
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue