From 7a933606fdac324289f4e4d1b6f86da1c29828ac Mon Sep 17 00:00:00 2001 From: Branden Butler Date: Wed, 13 Dec 2023 17:37:39 -0600 Subject: [PATCH] Fix type hint in documentation_types to support older python 3 --- src/cminx/documentation_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cminx/documentation_types.py b/src/cminx/documentation_types.py index 03b0521..de500d0 100644 --- a/src/cminx/documentation_types.py +++ b/src/cminx/documentation_types.py @@ -42,7 +42,7 @@ class SetCommandKeywords(Enum): FORCE = "FORCE" @classmethod - def values(cls) -> list[str]: + def values(cls) -> List[str]: return [param.value for param in cls] @@ -54,7 +54,7 @@ class CacheVarType(Enum): INTERNAL = "INTERNAL" @classmethod - def values(cls) -> dict[str, 'CacheVarType']: + def values(cls) -> Dict[str, 'CacheVarType']: return {param.value: param for param in cls}