mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			749 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			749 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import TypeVar, Callable, Optional, List, Dict, Union, Tuple, Any
 | 
						|
from django.http import HttpResponse
 | 
						|
 | 
						|
ViewFuncT = TypeVar('ViewFuncT', bound=Callable[..., HttpResponse])
 | 
						|
 | 
						|
# See zerver/lib/validator.py for more details of Validators,
 | 
						|
# including many examples
 | 
						|
Validator = Callable[[str, object], Optional[str]]
 | 
						|
ExtendedValidator = Callable[[str, str, object], Optional[str]]
 | 
						|
 | 
						|
ProfileDataElement = Dict[str, Union[int, float, Optional[str]]]
 | 
						|
ProfileData = List[ProfileDataElement]
 | 
						|
 | 
						|
FieldElement = Tuple[int, str, Validator, Callable[[Any], Any]]
 | 
						|
ExtendedFieldElement = Tuple[int, str, ExtendedValidator, Callable[[Any], Any]]
 | 
						|
 | 
						|
FieldTypeData = List[Union[FieldElement, ExtendedFieldElement]]
 | 
						|
 | 
						|
ProfileFieldData = Dict[str, Dict[str, str]]
 |