Skip to content

Instantly share code, notes, and snippets.

@bedilbek
Created February 14, 2026 13:55
Show Gist options
  • Select an option

  • Save bedilbek/7ef02fb7adbf0104722a7ccc3020914b to your computer and use it in GitHub Desktop.

Select an option

Save bedilbek/7ef02fb7adbf0104722a7ccc3020914b to your computer and use it in GitHub Desktop.

Type checking (vscode)

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 -v

To check with pyright (Pylance), you can run:

uv run pyright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment