File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments