Skip to content

Commit d6de03a

Browse files
authored
Use auto() for eligible StrEnum members (archlinux#4411)
1 parent 51600ec commit d6de03a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

archinstall/lib/models/application.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
class PowerManagement(StrEnum):
77
POWER_PROFILES_DAEMON = 'power-profiles-daemon'
8-
TUNED = 'tuned'
8+
TUNED = auto()
99

1010

1111
class PowerManagementConfigSerialization(TypedDict):
@@ -31,7 +31,7 @@ class PrintServiceConfigSerialization(TypedDict):
3131

3232

3333
class Firewall(StrEnum):
34-
UFW = 'ufw'
34+
UFW = auto()
3535
FWD = 'firewalld'
3636

3737

@@ -40,11 +40,11 @@ class FirewallConfigSerialization(TypedDict):
4040

4141

4242
class ZramAlgorithm(StrEnum):
43-
ZSTD = 'zstd'
43+
ZSTD = auto()
4444
LZO_RLE = 'lzo-rle'
45-
LZO = 'lzo'
46-
LZ4 = 'lz4'
47-
LZ4HC = 'lz4hc'
45+
LZO = auto()
46+
LZ4 = auto()
47+
LZ4HC = auto()
4848

4949

5050
class ApplicationSerialization(TypedDict):

0 commit comments

Comments
 (0)