Skip to content

Commit

Permalink
Change enum to support python-3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Nov 28, 2024
1 parent 3419d88 commit 2457231
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions darkseid/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
import itertools
import re
from collections import defaultdict
from enum import StrEnum
from enum import Enum
from pathlib import Path


class DataSources(StrEnum):
# TODO: Change to StrEnum when Python-3.10 support dropped
class DataSources(str, Enum):
COMIC_VINE = "Comic Vine"
METRON = "Metron"
GCD = "Grand Comics Database"
Expand Down

0 comments on commit 2457231

Please sign in to comment.