Skip to content

Commit 4cbdbda

Browse files
committed
add Literal type
1 parent a3cae4e commit 4cbdbda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eval_protocol/pytest/evaluation_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@
7272
from ..common_utils import load_jsonl
7373

7474
from pytest import StashKey
75+
from typing_extensions import Literal
7576

7677

7778
EXPERIMENT_LINKS_STASH_KEY = StashKey[list]()
7879

7980

80-
def _store_experiment_link(experiment_id: str, job_link: str, status: str):
81+
def _store_experiment_link(experiment_id: str, job_link: str, status: Literal["success", "failure"]):
8182
"""Store experiment link in pytest session stash."""
8283
try:
8384
import sys

0 commit comments

Comments
 (0)