From d4d04cc8cab3b88f8e63a8ba7185202a9dc9d269 Mon Sep 17 00:00:00 2001 From: Robert Detjens Date: Thu, 14 Sep 2023 11:53:56 -0700 Subject: [PATCH] use class from typing for annotations instead of builtin for 3.7 compat --- tosca-package/tosca/yaml2python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tosca-package/tosca/yaml2python.py b/tosca-package/tosca/yaml2python.py index 36b1969a..236b8d35 100644 --- a/tosca-package/tosca/yaml2python.py +++ b/tosca-package/tosca/yaml2python.py @@ -305,7 +305,7 @@ def find_repository(self, name) -> Tuple[str, str]: - def convert_import(self, imp: dict[str, str]) -> Tuple[str, str]: + def convert_import(self, imp: Dict[str, str]) -> Tuple[str, str]: "converts tosca yaml import dict (as `imp`) to python import statement" repo = imp.get("repository") file = imp.get("file")