From 3452e27284e243e5eb029e796b34eb0abe02eca3 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 29 May 2022 16:06:55 -0700 Subject: [PATCH] pyright: turn off reportPropertyTypeMismatch It doesn't usually find real issues in stubs. https://github.com/python/typeshed/pull/7964#discussion_r884106104 --- pyrightconfig.json | 2 +- pyrightconfig.stricter.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrightconfig.json b/pyrightconfig.json index 8bcc7aa96657..6897cf7ab1a7 100644 --- a/pyrightconfig.json +++ b/pyrightconfig.json @@ -40,7 +40,7 @@ "reportUnboundVariable": "error", "reportInvalidStubStatement": "error", "reportInvalidTypeVarUse": "error", - "reportPropertyTypeMismatch": "error", + "reportPropertyTypeMismatch": "none", "reportSelfClsParameterName": "error", "reportUnsupportedDunderAll": "error", // Incompatible overrides are out of typeshed's control as they are diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 803af495aaae..3daaeb2336b7 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -110,7 +110,7 @@ "reportUnboundVariable": "error", "reportInvalidStubStatement": "error", "reportInvalidTypeVarUse": "error", - "reportPropertyTypeMismatch": "error", + "reportPropertyTypeMismatch": "none", "reportSelfClsParameterName": "error", "reportUnsupportedDunderAll": "error", // Incompatible overrides are out of typeshed's control as they are