Skip to content

Feature: 优化依赖注入在 pydantic v2 下的性能 #897

Feature: 优化依赖注入在 pydantic v2 下的性能

Feature: 优化依赖注入在 pydantic v2 下的性能 #897

Triggered via pull request August 11, 2024 06:28
Status Failure
Total duration 39s
Artifacts

pyright.yml

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

Annotations

2 errors
Pyright Lint (pydantic-v1): nonebot/compat.py#L321
Method "validate" overrides class "ModelField" in an incompatible manner   Positional parameter count mismatch; base method has 5, but override has 2   Parameter 2 name mismatch: base parameter is named "v", override parameter is named "value"   Parameter 3 mismatch: base parameter "values" is keyword parameter, override parameter is position-only   Parameter "loc" is missing in override   Parameter "cls" is missing in override (reportIncompatibleMethodOverride)
Pyright Lint (pydantic-v1)
1 error