From 133682a6461088a629f67c54d76f40c0362c1179 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 70de1b7b..a3ddc530 100644 --- a/tosca-package/tosca/yaml2python.py +++ b/tosca-package/tosca/yaml2python.py @@ -283,7 +283,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")