The deprecation of pydantic_core.core_schema.FieldValidationInfo in v2.10.0 makes mypy unhappy:
from pydantic_core.core_schema import FieldValidationInfo
def f(x: FieldValidationInfo):
...
$ mypy test.py
test.py:3: error: Variable "pydantic_core.core_schema.FieldValidationInfo" is not valid as a type [valid-type]
test.py:3: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
Found 1 error in 1 file (checked 1 source file)
No error occurs when using v2.9.0.
This behavior turns the deprecation into a breaking change (at least regarding type-checking). As a result, we can't update from Pydantic v2.3 to v2.4 as pydantic-core is a pinned dependency and bumped to v2.10.