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(wiki): correct the mypy ignore code in _clamp_salience

Personal Jarvis Maintainerf1679a283a51
diff --git a/jarvis/memory/wiki/journal.py b/jarvis/memory/wiki/journal.py
index 8728a42741..98789f1fd5 100644
--- a/jarvis/memory/wiki/journal.py
+++ b/jarvis/memory/wiki/journal.py
@@ -777,7 +777,7 @@ def _safe_basis(value: object) -> str:
def _clamp_salience(value: object) -> int:
try:
- salience = int(value) # type: ignore[arg-type]
+ salience = int(value) # type: ignore[call-overload]
except (TypeError, ValueError):
return _DEFAULT_SALIENCE
return max(1, min(5, salience))