Skip to content

Commit e76aa90

Browse files
committed
加一点类型标注(
1 parent cbc91ff commit e76aa90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/const.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
VERSION = "Unknown"
2020
CACHE_BUFFER_COMPRESSION_MIN_LENGTH: int = 64
2121
DEBUG: bool = Config.get("advanced.debug")
22-
ROOT = os.getcwd()
23-
API_VERSION = "1.10.5"
24-
USER_AGENT = f"openbmclapi-cluster/{API_VERSION} python-openbmclapi/{VERSION}"
25-
BASE_URL = Config.get("advanced.url", "https://openbmclapi.bangbang93.com/")
26-
BD_URL = BASE_URL.replace("openbmclapi", "bd")
22+
ROOT: str = os.getcwd()
23+
API_VERSION: str = "1.10.5"
24+
USER_AGENT: str = f"openbmclapi-cluster/{API_VERSION} python-openbmclapi/{VERSION}"
25+
BASE_URL: str = Config.get("advanced.url", "https://openbmclapi.bangbang93.com/")
26+
BD_URL: str = BASE_URL.replace("openbmclapi", "bd")
2727
CLUSTER_ID: str = Config.get("cluster.id")
2828
CLUSTER_SECERT: str = Config.get("cluster.secret")
2929
IO_BUFFER: int = Config.get("advanced.io_buffer")
@@ -49,7 +49,7 @@
4949
LIMIT_SESSION_WEBDAV: int = 512
5050
TIMEOUT: int = Config.get("advanced.timeout")
5151
REQUEST_BUFFER: int = Config.get("advanced.request_buffer")
52-
FILE_REDIRECTS = ["index.html", "index.htm", "default.html", "default.htm"]
52+
FILE_REDIRECTS: list[str] = ["index.html", "index.htm", "default.html", "default.htm"]
5353
RESPONSE_HEADERS = {
5454
"Server": Config.get("web.server_name"),
5555
}

0 commit comments

Comments
 (0)