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:
Tim Abbott 2024-07-13 23:04:32 -07:00
parent 48202389b8
commit b0f144327d
1 changed files with 3 additions and 3 deletions

View File

@ -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