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:
Kenneth Rodrigues
2024-09-03 21:37:09 +05:30
committed by Tim Abbott
parent 88e1810733
commit dc32396180
10 changed files with 15 additions and 719 deletions

View File

@@ -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.