mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			424 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			424 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from typing import Any, Callable, TypeVar
 | 
						|
from django.http import HttpResponse
 | 
						|
 | 
						|
ViewFuncT = TypeVar('ViewFuncT', bound=Callable[..., HttpResponse])
 | 
						|
 | 
						|
class JsonableError(Exception):
 | 
						|
    error = ...  # type: Any
 | 
						|
    def to_json_error_msg(self) -> Any: ...
 | 
						|
 | 
						|
class RequestVariableMissingError(JsonableError): ...
 | 
						|
 | 
						|
def REQ(*args: Any, **kwargs: Any) -> Any: ...
 | 
						|
 | 
						|
def has_request_variables(view_func: ViewFuncT) -> ViewFuncT: ...
 |