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:
Tim Abbott
2016-05-31 07:29:39 -07:00
parent 41336f3782
commit 960144a49e
10 changed files with 26 additions and 33 deletions

View File

@@ -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=''),