Skip to content

Commit 8de56ef

Browse files
committed
[export] Add comment explaining why name in problems.yaml can also be str
1 parent 9d1bb39 commit 8de56ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/export.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ def update_problems_yaml(problems: list[Problem], colors: Optional[list[str]] =
499499
for problem in problems:
500500
found = False
501501

502+
# ProblemSettings always has `name: dict[str, str]`, but we revert to `str` when `--legacy` is used.
502503
problem_name: str | dict[str, str] = problem.settings.name
503504
if isinstance(problem_name, dict) and config.args.legacy:
504505
problem_name = problem_name[select_languages(problems)[0]]

0 commit comments

Comments
 (0)