mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	ruff: Fix UP007 Use X | Y for type annotations.
				
					
				
			Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e08a24e47f
						
					
				
				
					commit
					531b34cb4c
				
			@@ -1,5 +1,5 @@
 | 
			
		||||
import re
 | 
			
		||||
from typing import Any, Optional
 | 
			
		||||
from typing import Any
 | 
			
		||||
 | 
			
		||||
from typing_extensions import TypeAlias
 | 
			
		||||
 | 
			
		||||
@@ -118,7 +118,7 @@ def convert_to_zulip_markdown(
 | 
			
		||||
 | 
			
		||||
def get_user_mentions(
 | 
			
		||||
    token: str, users: list[ZerverFieldsT], slack_user_id_to_zulip_user_id: SlackToZulipUserIDT
 | 
			
		||||
) -> tuple[str, Optional[int]]:
 | 
			
		||||
) -> tuple[str, int | None]:
 | 
			
		||||
    slack_usermention_match = re.search(SLACK_USERMENTION_REGEX, token, re.VERBOSE)
 | 
			
		||||
    assert slack_usermention_match is not None
 | 
			
		||||
    short_name = slack_usermention_match.group(4)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user