Skip to content

Commit d7f41b8

Browse files
committed
refactor: DefaultConfig is now dataclass
1 parent cbf9c3f commit d7f41b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# -*- coding: utf-8 -*-
2+
from dataclasses import dataclass
23
from PySide6.QtCore import QLocale
34

45
__all__ = ['DefaultConfig', 'GTDB_IPS', 'ONLINE_SERVICES']
56

7+
@dataclass
68
class DefaultConfig:
79
language = 'zh_CN' if 'zh' in QLocale.system().name() else 'en_US'
810
test_host = 'translate.googleapis.com'
@@ -52,7 +54,7 @@ class DefaultConfig:
5254
)
5355

5456
# IPs from gtdb
55-
# updated 2026-02-01
57+
# updated 2026-02-06
5658
GTDB_IPS = '''108.177.111.90
5759
108.177.122.90
5860
108.177.123.90

0 commit comments

Comments
 (0)