From aed6a84abcc1606224ed7c67ed6dafe0be2f065c Mon Sep 17 00:00:00 2001 From: Lilleman Date: Fri, 20 Nov 2026 10:15:58 +0100 Subject: [PATCH] Type the template that DoEpicConfig takes --- bin/do_epic/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/do_epic/config.py b/bin/do_epic/config.py index b0c53828..35ac50b7 100644 --- a/bin/do_epic/config.py +++ b/bin/do_epic/config.py @@ -158,4 +158,6 @@ def load(home: pathlib.Path, ladder_file: pathlib.Path = SHIPPED) -> DoEpicConfi assert isinstance(labels, dict) statuses = values.get(UNBLOCKING_STATUSES, []) assert isinstance(statuses, list) - return DoEpicConfig(folder, url, env_file, clone_folder, language, model, rule, finish_of(values), types.MappingProxyType(labels), tuple(statuses), values.get(AUTOMATION_MOVES) is True, values.get(SUB_TASK_SUMMARY)) + template = values.get(SUB_TASK_SUMMARY) + assert template is None or isinstance(template, str) + return DoEpicConfig(folder, url, env_file, clone_folder, language, model, rule, finish_of(values), types.MappingProxyType(labels), tuple(statuses), values.get(AUTOMATION_MOVES) is True, template)