From c44315913bf520a6f9370068876448f4eac29747 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 14 Nov 2025 21:45:16 +0100 Subject: [PATCH] Remove obsolete pyright setting "reportShadowedImports" (#15027) 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 5e63976c9..74ddb65b8 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 68bcd2688..f9b093547 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 2d158badd..63b7c0804 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -108,8 +108,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 a957cc694..ab1cb86b9 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",