Skip to content

修复获取小说文字接口并新增几条 API #678

修复获取小说文字接口并新增几条 API

修复获取小说文字接口并新增几条 API #678

Triggered via pull request March 9, 2024 17:19
@asadahimekaasadahimeka
synchronize #399
Status Failure
Total duration 1m 13s
Artifacts

lint.yml

on: pull_request_target
Lint Code
1m 4s
Lint Code
CodeQL Analyze
0s
CodeQL Analyze
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Lint Code: hibiapi/__main__.py#L93
Argument of type "type[str] | type[None]" cannot be assigned to parameter "template" of type "type[_T@get]" in function "get"   Type "UnionType" cannot be assigned to type "type[_T@get]" (reportArgumentType)
Lint Code: hibiapi/api/qrcode.py#L11
"QRCode" is unknown import symbol (reportAttributeAccessIssue)
Lint Code: hibiapi/api/pixiv/api.py#L165
Expression of type "str" cannot be assigned to return type "Dict[str, Any]"   "str" is incompatible with "Dict[str, Any]" (reportReturnType)
Lint Code: hibiapi/api/pixiv/api.py#L482
No parameter named "raw" (reportCallIssue)
Lint Code: hibiapi/api/pixiv/api.py#L496
No overloads for "search" match the provided arguments (reportCallIssue)
Lint Code: hibiapi/api/pixiv/api.py#L496
Argument of type "Dict[str, Any]" cannot be assigned to parameter "string" of type "str" in function "search"   "Dict[str, Any]" is incompatible with "str" (reportArgumentType)
Lint Code: hibiapi/api/pixiv/api.py#L498
Argument of type "Dict[str, Any]" cannot be assigned to parameter "s" of type "str | bytes | bytearray" in function "loads"   Type "Dict[str, Any]" cannot be assigned to type "str | bytes | bytearray"     "Dict[str, Any]" is incompatible with "str"     "Dict[str, Any]" is incompatible with "bytes"     "Dict[str, Any]" is incompatible with "bytearray" (reportArgumentType)
Lint Code: hibiapi/api/pixiv/api.py#L563
Argument of type "int" cannot be assigned to parameter "__value" of type "str" in function "__setitem__"   "int" is incompatible with "str" (reportArgumentType)
Lint Code: hibiapi/utils/config.py#L27
Method "get" overrides class "ConfigView" in an incompatible manner   No overload signature in override is compatible with base method (reportIncompatibleMethodOverride)
Lint Code: hibiapi/utils/config.py#L27
Expression of type "Any" cannot be assigned to parameter of type "type[_T@get]" (reportArgumentType)
Lint Code
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pdm-project/setup-pdm@v3, suo/flake8-github-action@v1, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint Code
The following actions uses node12 which is deprecated and will be forced to run on node16: suo/flake8-github-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/