Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Enable error codes deprecated, exhaustive-match.

Anders Kaseorg72cc530cc156
diff --git a/pyproject.toml b/pyproject.toml
index d0073b120f6..41aa7e4b6fb 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.