Skip to content

Commit ec6516f

Browse files
committed
refactor: remove unnecessary type hint quotes and clean up test whitespace in router module
1 parent f093d7a commit ec6516f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/apcore_mcp/server/router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(
108108
# handle_call) are typically released within seconds, so eviction
109109
# in practice only impacts tombstones — which have no semantic
110110
# cost beyond the race-window protection.
111-
self._cancel_tokens: "OrderedDict[str, CancelToken]" = OrderedDict()
111+
self._cancel_tokens: OrderedDict[str, CancelToken] = OrderedDict()
112112
self._cancel_lock = threading.Lock()
113113

114114
# Cache whether executor methods accept a context parameter,

tests/server/test_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,10 +1160,10 @@ async def test_handle_call_clears_cancel_token_on_completion(self) -> None:
11601160
# No leftover entries
11611161
assert len(router._cancel_tokens) == 0
11621162

1163-
11641163
async def test_cancel_tombstone_eviction_bounded(self) -> None:
11651164
"""[B-002] Repeated cancel on unknown ids must be bounded."""
11661165
from apcore_mcp.server.router import _CANCEL_TOKENS_MAX
1166+
11671167
router = ExecutionRouter(StubExecutor(results={"m": {}}))
11681168
# Spam tombstones beyond the cap
11691169
for i in range(_CANCEL_TOKENS_MAX + 100):

0 commit comments

Comments
 (0)