Skip to content

Commit c3f4b94

Browse files
committed
appease mypy
1 parent d8d39b5 commit c3f4b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modelgauge/prompt_sets.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def validate_token_requirement(prompt_set: str, token=None) -> bool:
7777
raise ValueError(f"Prompt set {prompt_set} requires a token from MLCommons.")
7878

7979

80-
def demo_prompt_set_from_private_prompt_set(prompt_set: str) -> str | None:
80+
def demo_prompt_set_from_private_prompt_set(prompt_set: str) -> str:
8181
"""In a test environment, we replace the practice or official prompt sets
8282
(which require auth) with matching demo prompt sets (which are public).
8383
This function returns the demo counterpart to a given practice or official prompt set."""
@@ -90,7 +90,7 @@ def demo_prompt_set_from_private_prompt_set(prompt_set: str) -> str | None:
9090
break
9191

9292
if found_locale:
93-
return PROMPT_SETS["demo"].get(found_locale, None)
93+
return PROMPT_SETS["demo"].get(found_locale, "")
9494
return prompt_set
9595

9696

0 commit comments

Comments
 (0)