fix(types): narrow CookieCloud request URL

This commit is contained in:
jxxghp
2026-10-17 07:11:47 +08:00
parent 87674768a9
commit f7ce5c0ed0
3 changed files with 3 additions and 10 deletions

View File

@@ -56,7 +56,9 @@ class CookieCloudHelper:
if not result:
return {}, "未从本地CookieCloud服务加载到cookie数据,请检查服务器设置、用户KEY及加密密码是否正确"
else:
assert self._server is not None
req_url = UrlUtils.combine_url(host=self._server, path=f"get/{self._key}")
assert req_url is not None
with RequestUtils(content_type="application/json").response_manager(
method="GET", url=req_url
) as ret:

View File

@@ -7,6 +7,7 @@ follow_imports = skip
show_error_codes = True
pretty = True
files =
app/adapters/external/cookiecloud.py,
app/modules/indexer/parser/bitpt.py,
app/modules/indexer/parser/zhixing.py,
app/chain/transfer/format.py,

View File

@@ -16,9 +16,6 @@
"str-bytes-safe": 2,
"union-attr": 14
},
"app/adapters/external/cookiecloud.py": {
"arg-type": 1
},
"app/adapters/external/ocr.py": {
"arg-type": 1
},
@@ -1143,13 +1140,6 @@
"type-arg": 19,
"var-annotated": 5
},
"app/modules/indexer/parser/bitpt.py": {
"arg-type": 4,
"assignment": 7,
"no-untyped-def": 1,
"override": 1,
"union-attr": 2
},
"app/modules/indexer/parser/rousi.py": {
"no-untyped-def": 2
},