python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -15,6 +15,7 @@ MESSAGE_TEMPLATE = """
* **Attachments**: {attachments}
""".strip()
def dict_list_to_string(some_list: List[Any]) -> str:
internal_template = ''
for item in some_list:
@@ -29,10 +30,14 @@ def dict_list_to_string(some_list: List[Any]) -> str:
internal_template = internal_template[:-2]
return internal_template
@webhook_view('Greenhouse')
@has_request_variables
def api_greenhouse_webhook(request: HttpRequest, user_profile: UserProfile,
payload: Dict[str, Any]=REQ(argument_type='body')) -> HttpResponse:
def api_greenhouse_webhook(
request: HttpRequest,
user_profile: UserProfile,
payload: Dict[str, Any] = REQ(argument_type='body'),
) -> HttpResponse:
if payload['action'] == 'ping':
return json_success()