mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-28 10:49:46 +02:00
[eric] agents: drop dead typing.Dict imports + dangling _conns ref (caught by ruff/pyright audit, behavior-preserving)
This commit is contained in:
@@ -209,10 +209,10 @@ async def configure_provider_env(
|
||||
}
|
||||
# Pin subagent ids to whichever lane the user has, else CLI's
|
||||
# default Haiku 4.5 hits 9Router with no Claude route and 401s.
|
||||
try:
|
||||
sub_conns = _conns # reuse list fetched above
|
||||
except NameError:
|
||||
sub_conns = []
|
||||
# NOTE: sub_conns is the connection list passed in. Callers currently pass []
|
||||
# (see RunOptionsMixin), so `active` is empty and this pinning is inert until the
|
||||
# real connection list is wired through — a latent regression from the run/ split,
|
||||
# surfaced by pyright (the old inline `_conns` reference was left dangling here).
|
||||
active = {c.get("provider") for c in sub_conns
|
||||
if isinstance(c, dict) and c.get("isActive")}
|
||||
sub_model = None
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
from typeguard import typechecked
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import json
|
||||
import logging
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
from typing import List, Optional, Tuple
|
||||
from typeguard import typechecked
|
||||
import os
|
||||
import re
|
||||
|
||||
Reference in New Issue
Block a user