Skip to content

Commit 56546b6

Browse files
ctothclaude
andcommitted
Fix remaining Python 3.8 compatibility in assert_positions
Change list[dict[...]] to List[Dict[...]] in fixture parameter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3ed40b0 commit 56546b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Shared fixtures and helpers for html_to_text tests."""
22

3-
from typing import Any, Dict, Union
3+
from typing import Any, Dict, List, Union
44

55
import pytest
66

@@ -39,7 +39,7 @@ def callback(
3939
@pytest.fixture
4040
def assert_positions():
4141
"""Helper to verify start/end positions match actual content."""
42-
def _assert_positions(text: str, nodes: list[dict[str, Any]]) -> None:
42+
def _assert_positions(text: str, nodes: List[Dict[str, Any]]) -> None:
4343
"""Verify all nodes with start/end have valid positions."""
4444
for node in nodes:
4545
if "start" in node:

0 commit comments

Comments
 (0)