From 510e82fa22b8f0b52528dc4bd32b747d4543a5b3 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 23 Jun 2023 19:08:53 +0200 Subject: [PATCH] quality: fix mypy complaining about types for the 'extras' key in apt resource --- src/utils/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index 18f1aa7eb..ff4e9877f 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -22,7 +22,7 @@ import shutil import random import tempfile import subprocess -from typing import Dict, Any, List +from typing import Dict, Any, List, Union from moulinette import m18n from moulinette.utils.process import check_output @@ -1044,7 +1044,7 @@ class AptDependenciesAppResource(AppResource): packages: List = [] packages_from_raw_bash: str = "" - extras: Dict[str, Dict[str, str]] = {} + extras: Dict[str, Dict[str, Union[str, List]]] = {} def __init__(self, properties: Dict[str, Any], *args, **kwargs): super().__init__(properties, *args, **kwargs)