更新变量提取逻辑和规则 #549
Annotations
9 errors and 1 warning
pyright:
httpfpt/common/send_request.py#L173
Argument of type "Literal['sql']" cannot be assigned to parameter "__key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['sql']" cannot be assigned to type "SupportsIndex | slice"
"Literal['sql']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['sql']" is incompatible with "slice" (reportArgumentType)
|
pyright:
httpfpt/common/send_request.py#L174
Cannot access member "get" for type "str"
Member "get" is unknown (reportAttributeAccessIssue)
|
pyright:
httpfpt/common/send_request.py#L228
Argument expression after ** must be a mapping with a "str" key type (reportCallIssue)
|
pyright:
httpfpt/common/send_request.py#L230
Argument expression after ** must be a mapping with a "str" key type (reportCallIssue)
|
pyright:
httpfpt/common/send_request.py#L275
Argument of type "Literal['sql']" cannot be assigned to parameter "__key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['sql']" cannot be assigned to type "SupportsIndex | slice"
"Literal['sql']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['sql']" is incompatible with "slice" (reportArgumentType)
|
pyright:
httpfpt/common/send_request.py#L276
Cannot access member "get" for type "str"
Member "get" is unknown (reportAttributeAccessIssue)
|
pyright:
httpfpt/common/send_request.py#L283
Argument of type "Literal['assert_text']" cannot be assigned to parameter "__key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['assert_text']" cannot be assigned to type "SupportsIndex | slice"
"Literal['assert_text']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['assert_text']" is incompatible with "slice" (reportArgumentType)
|
pyright:
httpfpt/utils/request/request_data_parse.py#L326
Argument of type "str | dict[Unknown, Unknown]" cannot be assigned to parameter "code" of type "str" in function "exec_any_code"
Type "str | dict[Unknown, Unknown]" cannot be assigned to type "str"
"dict[Unknown, Unknown]" is incompatible with "str" (reportArgumentType)
|
pyright
8 errors
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading