Skip to content

⬆️ Fix: 屏蔽 pydantic 2.10.0 (#3137) #1185

⬆️ Fix: 屏蔽 pydantic 2.10.0 (#3137)

⬆️ Fix: 屏蔽 pydantic 2.10.0 (#3137) #1185

Triggered via push November 23, 2024 03:34
Status Failure
Total duration 1m 30s
Artifacts

pyright.yml

on: push
Matrix: Pyright Lint
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Pyright Lint (pydantic-v2): nonebot/drivers/aiohttp.py#L177
Argument of type "float | Literal[10]" cannot be assigned to parameter "timeout" of type "ClientWSTimeout | _SENTINEL" in function "ws_connect"   Type "float | Literal[10]" is not assignable to type "ClientWSTimeout | _SENTINEL"     Type "float" is not assignable to type "ClientWSTimeout | _SENTINEL"       "float" is not assignable to "ClientWSTimeout"       "float" is not assignable to "_SENTINEL" (reportArgumentType)
Pyright Lint (pydantic-v2)
1 error
Pyright Lint (pydantic-v1): nonebot/drivers/aiohttp.py#L177
Argument of type "float | Literal[10]" cannot be assigned to parameter "timeout" of type "ClientWSTimeout | _SENTINEL" in function "ws_connect"   Type "float | Literal[10]" is not assignable to type "ClientWSTimeout | _SENTINEL"     Type "float" is not assignable to type "ClientWSTimeout | _SENTINEL"       "float" is not assignable to "ClientWSTimeout"       "float" is not assignable to "_SENTINEL" (reportArgumentType)
Pyright Lint (pydantic-v1)
1 error