From 2ceb75aaf8539a71fcbc409511c71c53eaf3bf25 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 14 Nov 2025 21:37:54 +0100 Subject: [PATCH] Remove obsolete pyright setting "reportShadowedImports" Removed in 1.1.406: https://github.com/microsoft/pyright/releases/tag/1.1.406 --- pyrightconfig.json | 2 -- pyrightconfig.scripts_and_tests.json | 1 - pyrightconfig.stricter.json | 2 -- pyrightconfig.testcases.json | 1 - 4 files changed, 6 deletions(-) diff --git a/pyrightconfig.json b/pyrightconfig.json index 5e63976c9eab..74ddb65b85f6 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -28,8 +28,6 @@ // No effect in stubs "reportMissingSuperCall": "none", "reportUninitializedInstanceVariable": "none", - // stdlib stubs trigger reportShadowedImports - "reportShadowedImports": "none", // Stubs are allowed to use private variables "reportPrivateUsage": "none", // Stubs don't need the actual modules to be installed diff --git a/pyrightconfig.scripts_and_tests.json b/pyrightconfig.scripts_and_tests.json index 68bcd2688ad2..f9b093547281 100644 --- a/pyrightconfig.scripts_and_tests.json +++ b/pyrightconfig.scripts_and_tests.json @@ -14,7 +14,6 @@ "reportImplicitStringConcatenation": "none", // Extra strict settings "reportMissingModuleSource": "error", - "reportShadowedImports": "error", "reportCallInDefaultInitializer": "error", "reportPropertyTypeMismatch": "error", "reportUninitializedInstanceVariable": "error", diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 4c9e369f0a37..b0e5e63e3125 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -109,8 +109,6 @@ // No effect in stubs "reportMissingSuperCall": "none", "reportUninitializedInstanceVariable": "none", - // stdlib stubs trigger reportShadowedImports - "reportShadowedImports": "none", // Stubs are allowed to use private variables "reportPrivateUsage": "none", // Stubs don't need the actual modules to be installed diff --git a/pyrightconfig.testcases.json b/pyrightconfig.testcases.json index a957cc694f18..ab1cb86b9900 100644 --- a/pyrightconfig.testcases.json +++ b/pyrightconfig.testcases.json @@ -6,7 +6,6 @@ ], "typeCheckingMode": "strict", // Extra strict settings - "reportShadowedImports": "error", // Don't accidentally name a file something that shadows stdlib "reportImplicitStringConcatenation": "error", "reportUninitializedInstanceVariable": "error", "reportUnnecessaryTypeIgnoreComment": "error",