Skip to content

Commit da1824b

Browse files
cfsmp3claude
andcommitted
fix(types): Use Tuple from typing for Python 3.9 compatibility
The lowercase tuple[...] syntax for type hints is only available in Python 3.10+. Use typing.Tuple for Python 3.8/3.9 compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 24b8e91 commit da1824b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod_ci/controllers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import zipfile
1212
from collections import defaultdict
1313
from pathlib import Path
14-
from typing import Any, Dict, Optional
14+
from typing import Any, Dict, Optional, Tuple
1515

1616
import googleapiclient.discovery
1717
import requests
@@ -342,7 +342,7 @@ def mark_test_failed(db, test, repository, message: str) -> None:
342342
log.error(f"Failed to mark test {test.id} as failed: {e}")
343343

344344

345-
def _verify_binary_commit(binary_path: str, expected_commit: str, log) -> tuple[bool, str]:
345+
def _verify_binary_commit(binary_path: str, expected_commit: str, log) -> Tuple[bool, str]:
346346
"""
347347
Verify that the binary's embedded commit SHA matches the expected commit.
348348

0 commit comments

Comments
 (0)