Skip to content

Commit d1ad15f

Browse files
fix(lint): sort imports in test_protocol_shims.py per ruff length-sort
Three I001 errors from `ruff check` on the new test file — length-sort ordering inside each `from X import (a, b, c)` block. Auto-fixed via `ruff check --fix`; test still passes after sort. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d56d088 commit d1ad15f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/test_protocol_shims.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ def test_acp_shim_re_exports_all_original_symbols() -> None:
3131
still be importable from that path via the back-compat shim."""
3232
# Importing each symbol; ImportError here means the shim regressed.
3333
from agentex.lib.types.acp import ( # noqa: F401
34-
PARAMS_MODEL_BY_METHOD,
3534
RPC_SYNC_METHODS,
36-
CancelTaskParams,
37-
CreateTaskParams,
35+
PARAMS_MODEL_BY_METHOD,
3836
RPCMethod,
3937
SendEventParams,
38+
CancelTaskParams,
39+
CreateTaskParams,
4040
SendMessageParams,
4141
)
4242

@@ -55,8 +55,8 @@ def test_acp_shim_classes_are_identical_to_canonical() -> None:
5555
"""Shim re-exports must be the *same* class objects as the canonical
5656
path. Different objects would break ``isinstance`` for code that
5757
mixes import styles."""
58-
from agentex.lib.types import acp as shim
5958
from agentex.protocol import acp as canon
59+
from agentex.lib.types import acp as shim
6060

6161
assert shim.RPCMethod is canon.RPCMethod
6262
assert shim.CreateTaskParams is canon.CreateTaskParams
@@ -69,8 +69,8 @@ def test_acp_shim_classes_are_identical_to_canonical() -> None:
6969

7070
def test_json_rpc_shim_classes_are_identical_to_canonical() -> None:
7171
"""Same identity check for the JSON-RPC envelope types."""
72-
from agentex.lib.types import json_rpc as shim
7372
from agentex.protocol import json_rpc as canon
73+
from agentex.lib.types import json_rpc as shim
7474

7575
assert shim.JSONRPCError is canon.JSONRPCError
7676
assert shim.JSONRPCRequest is canon.JSONRPCRequest

0 commit comments

Comments
 (0)