Skip to content

Commit cf3d18b

Browse files
committed
fix: CI failures — Python 3.9 type syntax + mkdocs extension typo
- test_rewind.py: Replace `list | None` and `tuple[...]` with `Optional[list]` and `Tuple[...]` for Python 3.9 compatibility - mkdocs.yml: Fix `admonitions` → `admonition` (correct extension name)
1 parent efba434 commit cf3d18b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ markdown_extensions:
3434
- pymdownx.superfences
3535
- pymdownx.tabbed:
3636
alternate_style: true
37-
- admonitions
37+
- admonition
3838
- tables
3939
- toc:
4040
permalink: true

tests/test_rewind.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import sys
1212
import time
1313
from pathlib import Path
14+
from typing import Optional, Tuple
1415

1516
import pytest
1617

@@ -489,12 +490,12 @@ def test_default_provider_is_openai(self):
489490

490491
@requires_retriever
491492
class TestHandleRewind:
492-
def _make_store_with_content(self, content: str) -> tuple[RewindStore, str]:
493+
def _make_store_with_content(self, content: str) -> Tuple[RewindStore, str]:
493494
store = RewindStore()
494495
hash_id = store.store(content, "compressed")
495496
return store, hash_id
496497

497-
def _call(self, store: RewindStore, hash_id: str, keywords: list | None = None) -> dict:
498+
def _call(self, store: RewindStore, hash_id: str, keywords: Optional[list] = None) -> dict:
498499
"""Build a tool_call dict and invoke handle_rewind."""
499500
args: dict = {"hash_id": hash_id}
500501
if keywords is not None:

0 commit comments

Comments
 (0)