Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
narrow: Update new function for modern Python typing syntax.
Tim Abbottb0f144327dbf
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.pyindex 526cd6408af..62f4873bfef 100644--- a/zerver/lib/narrow.py+++ b/zerver/lib/narrow.py@@ -883,9 +883,9 @@ def get_channel_from_narrow_access_unchecked(# operators for the conversation view containing the targeted message.def update_narrow_terms_containing_with_operator(realm: Realm,- maybe_user_profile: Union[UserProfile, AnonymousUser],- narrow: Optional[List[NarrowParameter]],-) -> Optional[List[NarrowParameter]]:+ maybe_user_profile: UserProfile | AnonymousUser,+ narrow: list[NarrowParameter] | None,+) -> list[NarrowParameter] | None:if narrow is None:return narrow