mirror of https://github.com/zulip/zulip.git
narrow: Update new function for modern Python typing syntax.
I apparently needed to be more careful rebasing the typing syntax modernization work.
This commit is contained in:
parent
48202389b8
commit
b0f144327d
|
@ -883,9 +883,9 @@ def get_channel_from_narrow_access_unchecked(
|
||||||
# operators for the conversation view containing the targeted message.
|
# operators for the conversation view containing the targeted message.
|
||||||
def update_narrow_terms_containing_with_operator(
|
def update_narrow_terms_containing_with_operator(
|
||||||
realm: Realm,
|
realm: Realm,
|
||||||
maybe_user_profile: Union[UserProfile, AnonymousUser],
|
maybe_user_profile: UserProfile | AnonymousUser,
|
||||||
narrow: Optional[List[NarrowParameter]],
|
narrow: list[NarrowParameter] | None,
|
||||||
) -> Optional[List[NarrowParameter]]:
|
) -> list[NarrowParameter] | None:
|
||||||
if narrow is None:
|
if narrow is None:
|
||||||
return narrow
|
return narrow
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue