ci/lint: ruff format pass and fix compact seed test typing

Apply pending ruff format; narrow AssistantChatMessage.content before
membership checks so basedpyright accepts Unset|None unions.
This commit is contained in:
2026-07-15 11:36:01 +08:00
parent 6e9e034de4
commit aaf7fe8e7b
18 changed files with 26 additions and 55 deletions
+1 -3
View File
@@ -142,9 +142,7 @@ async def test_rounds(state: ReplState) -> None:
assert state.agent.max_rounds == 40
async def test_status_shows_context_tokens(
state: ReplState, capsys: pytest.CaptureFixture[str]
) -> None:
async def test_status_shows_context_tokens(state: ReplState, capsys: pytest.CaptureFixture[str]) -> None:
from plyngent.agent.usage import TokenUsage
from plyngent.lmproto.openai_compatible.model import UserChatMessage