From 6f6cd8cc4ae71891cc8c8da81c4b313abcd0f36c Mon Sep 17 00:00:00 2001 From: Avasam Date: Tue, 27 May 2025 22:45:13 -0400 Subject: [PATCH] Explain why mypy `overrides` is ignored (same as pyright) --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f61829f0..e9ce7fd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -155,9 +155,11 @@ disable_error_code = [ # `assert-type` issues is tests mostly comme from checking overloads # Since this project is specific to Pylance, just ignore them "assert-type", + # Incompatible overrides are out of our stubs' control + # as they are inherited from the implementation. + "override", # TODO "valid-type", # 967 errors in 115 files - "override", # 790 errors in 220 files "assignment", # 773 errors in 172 files "misc", # 692 errors in 132 files "attr-defined", # 202 errors in 75 files