Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

chore(browser): annotate isolated runtime imports

rubenluetke10-beep6288170c4cff
diff --git a/jarvis/society/browser/live_runner.py b/jarvis/society/browser/live_runner.py
index 7763f72d3c..ff959f8968 100644
--- a/jarvis/society/browser/live_runner.py
+++ b/jarvis/society/browser/live_runner.py
@@ -35,7 +35,7 @@ def emit(kind: str, **values: Any) -> None:
async def probe() -> None:
from PIL import Image
- from playwright.async_api import async_playwright
+ from playwright.async_api import async_playwright # type: ignore[import-not-found]
__import__("browser_use") # The health check includes the actual runtime import.
async with async_playwright() as pw:
@@ -112,7 +112,7 @@ class Worker:
self.pending.pop(key, None)
async def start(self, args: dict) -> dict:
- from native_window import NativeWindow, available
+ from native_window import NativeWindow, available # type: ignore[import-not-found]
native_enabled = available()
@@ -551,7 +551,9 @@ class Worker:
self.manual = True
else:
if self.native and self.manual:
- from browser_use.browser.events import SwitchTabEvent
+ from browser_use.browser.events import (
+ SwitchTabEvent, # type: ignore[import-not-found]
+ )
await self.focused()
target = next((t for t, p in self.tabs.items() if p is self.page), "")
diff --git a/jarvis/society/browser/native_window.py b/jarvis/society/browser/native_window.py
index 240d71b878..3e0842354a 100644
--- a/jarvis/society/browser/native_window.py
+++ b/jarvis/society/browser/native_window.py
@@ -43,7 +43,7 @@ class NativeWindow:
import ctypes
from ctypes import wintypes
- from windows_capture import WindowsCapture
+ from windows_capture import WindowsCapture # type: ignore[import-not-found]
self.ctypes = ctypes
self.wintypes = wintypes
@@ -109,7 +109,7 @@ class NativeWindow:
@capture.event
def on_frame_arrived(frame: Any, _control: Any) -> None:
- import cv2
+ import cv2 # type: ignore[import-not-found]
try:
captured_at = time.time()