Skip to content

Commit c4ac17f

Browse files
committed
fix: satisfy type check
1 parent 49700d2 commit c4ac17f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/codegen/cli/telemetry/otel_setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ def shutdown_otel_logging():
292292

293293
if _logger_provider is not None:
294294
try:
295+
# Type checker workaround: assert that provider is not None after the check
296+
assert _logger_provider is not None
295297
_logger_provider.shutdown()
296298
except Exception:
297299
pass # Ignore shutdown errors

src/codegen/cli/tui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def _load_agent_runs(self) -> bool:
222222
print(f"Error loading agent runs: {e}")
223223
return False
224224

225-
def _format_status(self, status: str, agent_run: dict | None = None) -> str:
225+
def _format_status(self, status: str, agent_run: dict | None = None) -> tuple[str, str]:
226226
"""Format status with colored indicators matching kanban style."""
227227
# Check if this agent has a merged PR (done status)
228228
is_done = False

src/codegen/exports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"""
77

88
from codegen.agents.agent import Agent
9-
from codegen.sdk.core.codebase import Codebase
10-
from codegen.sdk.core.function import Function
9+
from codegen.sdk.core.codebase import Codebase # type: ignore[import-untyped]
10+
from codegen.sdk.core.function import Function # type: ignore[import-untyped]
1111
from codegen.shared.enums.programming_language import ProgrammingLanguage
1212

1313
__all__ = [

0 commit comments

Comments
 (0)