You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(llc/kb): dead import LLCWorkItem in inheritance.py causes F401 pre-commit failure (GH#8241) #8568
autobot-backend/llc/kb/inheritance.py line 19 has a dead import introduced by PR #8554 (GH#8241):
from ..models.work_itemimportLLCWorkItem
LLCWorkItem is never referenced anywhere in the file. The flake8 F401 pre-commit hook (enforced since #6973) will reject any commit that touches this file until the import is removed.
Fix
Remove line 19:
from ..models.work_itemimportLLCWorkItem# DELETE THIS
Not fixed after 5 iterations.
Last output:
Regression detected:
============================= test session starts ==============================
collected 0 items / 1 error
==================================== ERRORS ====================================
__________ ERROR collecting autobot-backend/a2a/a2a_security_test.py ___________
<frozen importlib._bootstrap_external>:883: in exec_module
???
<frozen importlib._bootstrap>:241: in _call_with_frames_removed
???
autobot-backend/a2a/__init__.py:18: in <module>
from .agent_card import build_agent_card
autobot-backend/a2a/agent_card.py:17: in <module>
from .types import AgentCapabilities, AgentCard, AgentSkill
autobot-backend/a2a/types.py:145: in <module>
class Task:
autobot-backend/a2a/types.py:161: in Task
trace_context: "TraceContext" | None = field(default=None, repr=False)
E TypeError: unsupported operand type(s) for |: 'str' and 'NoneType'
=========================== short test summary info ============================
ERROR autobot-backend/a2a/a2a_security_test.py - TypeError: unsupported opera...
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.57s ===============================
Activity
mrveiss commentedon May 25, 2026
Manual intervention required.
test(#8568): add failing repro test
fix(#8568): fix(llc/kb): dead import LLCWorkItem in inheritance.py cause
fix(llc/kb): dead import LLCWorkItem in inheritance.py (GH#8568)
github-actions commentedon May 25, 2026
PR #8582 (merged to
Dev_new_gui) references this issue with a close keyword.If this issue is fully resolved, close it manually. If work remains, no action is needed.
mrveiss commentedon May 25, 2026
✅ Closed — fixed by PR #8582 (commit 2f3cb9a merged to Dev_new_gui 2026-05-25).
Fix: Removed dead import of
LLCWorkItemfromllc/kb/inheritance.py— the class was removed upstream but import remained. Also fixed isort ordering.Commit: 2f3cb9a — fix(llc/kb): dead import LLCWorkItem in inheritance.py (GH#8568)