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.

narrow: Add maybe_negate annotation needed by mypy 1.10.

Anders Kaseorg0dff5f0a277f
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.py
index 5bc5be0d952..8055612a1eb 100644
--- a/zerver/lib/narrow.py
+++ b/zerver/lib/narrow.py
@@ -323,7 +323,7 @@ class NarrowBuilder:
raise BadNarrowOperatorError("unknown operator " + operator)
if negated:
- maybe_negate = not_
+ maybe_negate: ConditionTransform = not_
else:
maybe_negate = lambda cond: cond