Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Remove NamedArg usage.
Tim Abbottb47ba02b02cc
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.pyindex 9cf9bd869a9..53c065779d0 100644--- a/zerver/lib/narrow.py+++ b/zerver/lib/narrow.py@@ -22,7 +22,6 @@ from django.conf import settingsfrom django.core.exceptions import ValidationErrorfrom django.db import connectionfrom django.utils.translation import gettext as _-from mypy_extensions import NamedArgfrom sqlalchemy.dialects import postgresqlfrom sqlalchemy.engine import Connection, Rowfrom sqlalchemy.sql import (@@ -150,7 +149,7 @@ def is_web_public_narrow(narrow: Optional[Iterable[Dict[str, Any]]]) -> bool:def build_narrow_filter(narrow: Collection[NarrowTerm],-) -> Callable[[NamedArg(Dict[str, Any], "message"), NamedArg(List[str], "flags")], bool]:+) -> Callable[..., bool]:"""Changes to this function should come with corresponding changes toNarrowLibraryTest."""check_supported_events_narrow_filter(narrow)