From df022febaf4782270588431c0ba7c6b84f4b29c9 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Fri, 20 Feb 2026 13:31:15 +0100 Subject: [PATCH] refactor(loop): drop redundant Any typing in /new snapshot --- nanobot/agent/loop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index b0bace5..42ab351 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -6,7 +6,7 @@ import json import json_repair from pathlib import Path import re -from typing import Any, Awaitable, Callable +from typing import Awaitable, Callable from loguru import logger @@ -343,7 +343,7 @@ class AgentLoop: cmd = msg.content.strip().lower() if cmd == "/new": lock = self._get_consolidation_lock(session.key) - messages_to_archive: list[dict[str, Any]] = [] + messages_to_archive = [] try: async with lock: messages_to_archive = session.messages[session.last_consolidated :].copy()