From f194d3b8ecde14f2e26c626fbbabd53b5987011a Mon Sep 17 00:00:00 2001 From: Avasam Date: Mon, 4 Dec 2023 14:13:34 -0500 Subject: [PATCH] Go back to default for useLibraryCodeForTypes --- .vscode/settings.default.json | 12 ------------ pyrightconfig.scripts_and_tests.json | 2 -- 2 files changed, 14 deletions(-) diff --git a/.vscode/settings.default.json b/.vscode/settings.default.json index d06ef6034aed..38709967d2c1 100644 --- a/.vscode/settings.default.json +++ b/.vscode/settings.default.json @@ -71,23 +71,11 @@ ], "editor.defaultFormatter": "ms-python.black-formatter" }, - // Use the new dedicated extensions instead - "python.formatting.provider": "none", - "python.linting.enabled": false, - "python.linting.mypyEnabled": false, - "python.linting.flake8Enabled": false, - "python.linting.pycodestyleEnabled": false, - "python.linting.prospectorEnabled": false, - "python.linting.pylamaEnabled": false, - "python.linting.pylintEnabled": false, - "python.linting.banditEnabled": false, // python.analysis is Pylance (pyright) configurations "python.analysis.fixAll": [ "source.unusedImports" // Explicitly omiting "source.convertImportFormat", some stubs use relative imports ], - // Important to use `types-*` and flag untyped dependencies. - "python.analysis.useLibraryCodeForTypes": false, "python.analysis.typeshedPaths": [ "${workspaceFolder}" ], diff --git a/pyrightconfig.scripts_and_tests.json b/pyrightconfig.scripts_and_tests.json index ef506c53e555..1dd97d4443e8 100644 --- a/pyrightconfig.scripts_and_tests.json +++ b/pyrightconfig.scripts_and_tests.json @@ -6,8 +6,6 @@ "tests", ], "typeCheckingMode": "strict", - // Runtime libraries used by typeshed are not all py.typed - "useLibraryCodeForTypes": true, // More of a lint. Unwanted for typeshed's own code. "reportImplicitStringConcatenation": "none", // Extra strict settings