Skip to content

Commit

Permalink
changed Enum with IntEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonzorn committed Jul 28, 2024
1 parent 693db91 commit 18569a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nlightreader/consts/enums.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from enum import Enum, unique
from enum import IntEnum, unique

LIB_LISTS = (
"planned",
Expand All @@ -13,7 +13,7 @@

class Nl:
@unique
class Language(Enum):
class Language(IntEnum):
undefined = 0
en = 1
ru = 2
Expand Down Expand Up @@ -46,14 +46,14 @@ def to_str(self) -> str:
return names[self.value]

@unique
class CatalogType(Enum):
class CatalogType(IntEnum):
manga = 0
hentai_manga = 1
ranobe = 2
anime = 3

@unique
class MangaKind(Enum):
class MangaKind(IntEnum):
undefined = 0
manga = 1
manhwa = 2
Expand Down Expand Up @@ -102,7 +102,7 @@ def to_str(self) -> str:
return names[self.value]

@unique
class LibList(Enum):
class LibList(IntEnum):
planned = 0
completed = 1
reading = 2
Expand Down Expand Up @@ -131,7 +131,7 @@ def to_str(self) -> str:
return LIB_LISTS[self.value]

@unique
class MangaStatus(Enum):
class MangaStatus(IntEnum):
undefined = 0
ongoing = 1
released = 2
Expand Down

0 comments on commit 18569a1

Please sign in to comment.