mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-02 21:34:32 +08:00
fix(types): narrow CookieCloud request URL
This commit is contained in:
2
app/adapters/external/cookiecloud.py
vendored
2
app/adapters/external/cookiecloud.py
vendored
@@ -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:
|
||||
|
||||
1
mypy.ini
1
mypy.ini
@@ -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,
|
||||
|
||||
10
tests/fixtures/architecture/mypy-baseline.json
vendored
10
tests/fixtures/architecture/mypy-baseline.json
vendored
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user