From 72cc530cc1567e83a0de95e3d95bdbb9319e55e3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 13 Aug 2025 11:49:20 -0700 Subject: [PATCH] mypy: Enable error codes deprecated, exhaustive-match. Signed-off-by: Anders Kaseorg --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d0073b120f..41aa7e4b6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -366,12 +366,14 @@ warn_return_any = false # Enable optional errors. enable_error_code = [ "redundant-self", + "deprecated", "redundant-expr", "truthy-bool", "truthy-iterable", "ignore-without-code", "unused-awaitable", "explicit-override", + "exhaustive-match", ] # Display the codes needed for # type: ignore[code] annotations.