From b15580277930061fe289f2fcb883b703ce358405 Mon Sep 17 00:00:00 2001 From: Christopher O'Brien Date: Wed, 25 Aug 2021 09:50:00 -0400 Subject: [PATCH] Literal isn't available before 3.8 so let's avoid it --- kojismokydingo/types.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kojismokydingo/types.py b/kojismokydingo/types.py index e1dd7856..93d0dc1a 100644 --- a/kojismokydingo/types.py +++ b/kojismokydingo/types.py @@ -31,7 +31,7 @@ PathInfo, ) from optparse import Values from typing import ( - Any, Callable, Dict, Iterable, List, Literal, + Any, Callable, Dict, Iterable, List, Optional, Tuple, Union, ) @@ -500,15 +500,15 @@ class DecoratedRPMInfo(RPMInfo): preferred signature (if any) was available. """ - btype: Literal["rpm"] - btype_id: Literal[1] + btype: str + btype_id: int filepath: str sigkey: str - type_id: Literal[0] - type_name: Literal["rpm"] + type_id: int + type_name: str DecoratedRPMInfos = Iterable[DecoratedRPMInfo]