From 4be428fce7fa85bdad9181df6a68168320b0c9af Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sun, 19 Oct 2025 17:04:01 -0300 Subject: [PATCH] Set Pyright level as `basic` by default for VS Code (#154495) --- .devcontainer/devcontainer.json | 1 + .vscode/settings.default.json | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eabe0cd500a..ba22488f212 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,6 +41,7 @@ "python.terminal.activateEnvInCurrentTerminal": true, "python.testing.pytestArgs": ["--no-cov"], "pylint.importStrategy": "fromEnvironment", + "python.analysis.typeCheckingMode": "basic", "editor.formatOnPaste": false, "editor.formatOnSave": true, "editor.formatOnType": true, diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index 8c57059959b..1fae0e55912 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -7,6 +7,8 @@ "python.testing.pytestEnabled": false, // https://code.visualstudio.com/docs/python/linting#_general-settings "pylint.importStrategy": "fromEnvironment", + // Pyright is too pedantic for Home Assistant + "python.analysis.typeCheckingMode": "basic", "json.schemas": [ { "fileMatch": [