Skip to content

Commit 7a4a5e9

Browse files
committed
Use Union for better compatibility
1 parent 89f3a75 commit 7a4a5e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from abc import ABC, abstractmethod
1616
from dataclasses import dataclass
1717
from pathlib import Path
18-
from typing import Any, Dict, List, Optional, Protocol, Tuple
18+
from typing import Any, Dict, List, Optional, Protocol, Tuple, Union
1919

2020

2121
def create_venv(venv_path):
@@ -3168,7 +3168,7 @@ def get_current_shell() -> str:
31683168
return "bash"
31693169

31703170

3171-
def get_last_failed_tests(history_file: Path | str) -> List[Any]:
3171+
def get_last_failed_tests(history_file: Union[Path, str]) -> List[Any]:
31723172
"""Get the last failed tests from the history file
31733173
31743174
Args:

0 commit comments

Comments
 (0)