Skip to content

Docs: 修复事件后处理函数类型 docstring 错误 #356

Docs: 修复事件后处理函数类型 docstring 错误

Docs: 修复事件后处理函数类型 docstring 错误 #356

Triggered via pull request November 19, 2023 15:25
Status Failure
Total duration 32s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

pyright.yml

on: pull_request
Pyright Lint
23s
Pyright Lint
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Pyright Lint: nonebot/internal/adapter/message.py#L322
Expression of type "Message[TMS@Message]" cannot be assigned to return type "Self@Message[TMS@Message]"   Type "Message[TMS@Message]" cannot be assigned to type "Self@Message[TMS@Message]" (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/driver/combine.py#L38
No overloads for "__get__" match the provided arguments (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/driver/combine.py#L38
Argument of type "CombinedDriver" cannot be assigned to parameter "obj" of type "None" in function "__get__"   "CombinedDriver" is incompatible with "None" (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/driver/combine.py#L40
No overloads for "join" match the provided arguments (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/driver/combine.py#L40
No overloads for "__get__" match the provided arguments (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/driver/combine.py#L40
Argument of type "CombinedDriver" cannot be assigned to parameter "obj" of type "None" in function "__get__"   "CombinedDriver" is incompatible with "None" (reportGeneralTypeIssues)
Pyright Lint: nonebot/internal/matcher/matcher.py#L316
Expression of type "type[_]" cannot be assigned to return type "type[Self@Matcher]"   Type "type[_]" cannot be assigned to type "type[Self@Matcher]" (reportGeneralTypeIssues)
Pyright Lint
7 errors