mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	ruff: Fix UP006 Use list instead of List for type annotation.
				
					
				
			Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							c2214b3904
						
					
				
				
					commit
					e08a24e47f
				
			@@ -1,12 +1,12 @@
 | 
			
		||||
import json
 | 
			
		||||
import re
 | 
			
		||||
from typing import Any, Optional, Tuple
 | 
			
		||||
from typing import Any, Optional
 | 
			
		||||
 | 
			
		||||
from zerver.lib.message import SendMessageRequest
 | 
			
		||||
from zerver.models import Message, SubMessage
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def get_widget_data(content: str) -> Tuple[Optional[str], Any]:
 | 
			
		||||
def get_widget_data(content: str) -> tuple[Optional[str], Any]:
 | 
			
		||||
    valid_widget_types = ["poll", "todo"]
 | 
			
		||||
    tokens = re.split(r"\s+|\n+", content)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user