For now we can skip checking with ty unless they add full pydantic support: astral-sh/ty#2403 Thus if you have ty installed and enabled then we need to change to Pylance:
code --list-extensions | grep -iE 'ty|pylance|python|mypy|pyright'If you see both below extensions, then you can ensure that Pylance and ty are installed: So if you want to use Pylance:
{
"python.languageServer": "Pylance",
"ty.disableLanguageServices": true,
}However, if you want to use ty, then you can set:
{
"python.languageServer": "None",
"ty.disableLanguageServices": false,
}To check with ty, you can run:
uv run ty check -vTo check with pyright (Pylance), you can run:
uv run pyright