File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
- from enum import Enum , unique
2
+ from enum import IntEnum , unique
3
3
4
4
LIB_LISTS = (
5
5
"planned" ,
13
13
14
14
class Nl :
15
15
@unique
16
- class Language (Enum ):
16
+ class Language (IntEnum ):
17
17
undefined = 0
18
18
en = 1
19
19
ru = 2
@@ -46,14 +46,14 @@ def to_str(self) -> str:
46
46
return names [self .value ]
47
47
48
48
@unique
49
- class CatalogType (Enum ):
49
+ class CatalogType (IntEnum ):
50
50
manga = 0
51
51
hentai_manga = 1
52
52
ranobe = 2
53
53
anime = 3
54
54
55
55
@unique
56
- class MangaKind (Enum ):
56
+ class MangaKind (IntEnum ):
57
57
undefined = 0
58
58
manga = 1
59
59
manhwa = 2
@@ -102,7 +102,7 @@ def to_str(self) -> str:
102
102
return names [self .value ]
103
103
104
104
@unique
105
- class LibList (Enum ):
105
+ class LibList (IntEnum ):
106
106
planned = 0
107
107
completed = 1
108
108
reading = 2
@@ -131,7 +131,7 @@ def to_str(self) -> str:
131
131
return LIB_LISTS [self .value ]
132
132
133
133
@unique
134
- class MangaStatus (Enum ):
134
+ class MangaStatus (IntEnum ):
135
135
undefined = 0
136
136
ongoing = 1
137
137
released = 2
You can’t perform that action at this time.
0 commit comments