... and fix typing as a result of the last commit.

CURA-8014
This commit is contained in:
Remco Burema 2021-03-24 16:29:38 +01:00
parent f95c09db37
commit f1cbe1a958
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C

View File

@ -65,7 +65,7 @@ class WhatsNewPagesModel(WelcomePagesModel):
texts, max_text = WhatsNewPagesModel._collectOrdinalFiles(Resources.Texts, WhatsNewPagesModel.text_formats) texts, max_text = WhatsNewPagesModel._collectOrdinalFiles(Resources.Texts, WhatsNewPagesModel.text_formats)
highest = max(max_image, max_text) highest = max(max_image, max_text)
self._subpages = [] #type: List[Dict[str, str]] self._subpages = [] #type: List[Dict[str, Optional[str]]]
for n in range(0, highest + 1): for n in range(0, highest + 1):
self._subpages.append({ self._subpages.append({
WhatsNewPagesModel.image_key: None if n not in images else images[n], WhatsNewPagesModel.image_key: None if n not in images else images[n],