mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Desupport using uninstantiated REQ with has_request_variables.
This makes life difficult for doing static type annotations, and didn't make the code look that much better anyway.
This commit is contained in:
@@ -124,7 +124,7 @@ def api_github_v2(user_profile, event, payload, branches, default_stream, commit
|
||||
|
||||
@authenticated_api_view
|
||||
@has_request_variables
|
||||
def api_github_landing(request, user_profile, event=REQ,
|
||||
def api_github_landing(request, user_profile, event=REQ(),
|
||||
payload=REQ(validator=check_dict([])),
|
||||
branches=REQ(default=''),
|
||||
stream=REQ(default=''),
|
||||
|
||||
Reference in New Issue
Block a user