mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
mypy: Use Python 3 type syntax in zerver/webhooks/github_webhook/view.py.
This commit is contained in:
@@ -368,9 +368,8 @@ EVENT_FUNCTION_MAPPER = {
|
||||
@api_key_only_webhook_view('GitHub')
|
||||
@has_request_variables
|
||||
def api_github_webhook(
|
||||
request, user_profile, payload=REQ(argument_type='body'),
|
||||
stream=REQ(default='github'), branches=REQ(default=None)):
|
||||
# type: (HttpRequest, UserProfile, Dict[str, Any], Text, Text) -> HttpResponse
|
||||
request: HttpResponse, user_profile: UserProfile, payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||
stream: Text=REQ(default='github'), branches: Text=REQ(default=None)) -> HttpResponse:
|
||||
event = get_event(request, payload, branches)
|
||||
if event is not None:
|
||||
subject = get_subject_based_on_type(payload, event)
|
||||
|
||||
Reference in New Issue
Block a user