Skip to content

Commit dc3916f

Browse files
Fix additional Generator type annotations for Python 3.13
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 4b54544 commit dc3916f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openhands-sdk/openhands/sdk/agent/acp_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def _record_usage(self, response: PromptResponse | None, session_id: str) -> Non
365365
def system_message(self) -> str:
366366
return "ACP-managed agent"
367367

368-
def get_all_llms(self) -> Generator[LLM, None, None]:
368+
def get_all_llms(self) -> Generator[LLM]:
369369
yield self.llm
370370

371371
# -- Lifecycle ---------------------------------------------------------

openhands-sdk/openhands/sdk/llm/fallback_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def try_fallback(
121121
def _profile_store(self) -> LLMProfileStore:
122122
return LLMProfileStore(self.profile_store_dir)
123123

124-
def _iter_fallbacks(self) -> Generator[Any, None, None]:
124+
def _iter_fallbacks(self) -> Generator[Any]:
125125
"""Yield fallback LLM instances, resolving lazily from profiles.
126126
127127
Profiles are loaded one at a time and appended to ``_resolved``

0 commit comments

Comments
 (0)