From 7957223e8442d96c30826946f3d7f06b50448630 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 be6188ae..d0d67b5c 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")