mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	endpoints: Remove the has_request_variables decorator.
All endpoints have been migrated to the typed_endpoint decorator, therefore the has_request_variables decorator and the REQ function are no longer needed and have been removed.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							88e1810733
						
					
				
				
					commit
					dc32396180
				
			| @@ -354,10 +354,6 @@ python_rules = RuleList( | ||||
|             "exclude": {"zerver/tests", "zerver/views/development/"}, | ||||
|             "description": "Argument to JsonableError should be a literal string enclosed by _()", | ||||
|         }, | ||||
|         { | ||||
|             "pattern": r"""([a-zA-Z0-9_]+)=REQ\(['"]\1['"]""", | ||||
|             "description": "REQ's first argument already defaults to parameter name", | ||||
|         }, | ||||
|         { | ||||
|             "pattern": r"self\.client\.(get|post|patch|put|delete)", | ||||
|             "description": """Do not call self.client directly for put/patch/post/get. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user