mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
ruff: Fix UP006 Use list instead of List for type annotation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2214b3904
commit
e08a24e47f
@@ -1,6 +1,6 @@
|
||||
import re
|
||||
from datetime import datetime, timezone
|
||||
from typing import Callable, Dict, Optional
|
||||
from typing import Callable, Optional
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
||||
@@ -811,7 +811,7 @@ def get_topic_based_on_type(payload: WildValue, event: str) -> str:
|
||||
return get_repository_name(payload)
|
||||
|
||||
|
||||
EVENT_FUNCTION_MAPPER: Dict[str, Callable[[Helper], str]] = {
|
||||
EVENT_FUNCTION_MAPPER: dict[str, Callable[[Helper], str]] = {
|
||||
"commit_comment": get_commit_comment_body,
|
||||
"closed_pull_request": get_closed_pull_request_body,
|
||||
"create": partial(get_create_or_delete_body, "created"),
|
||||
|
||||
Reference in New Issue
Block a user