ruff: Fix UP006 Use list instead of List for type annotation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:17 -07:00
committed by Tim Abbott
parent c2214b3904
commit e08a24e47f
457 changed files with 3588 additions and 3857 deletions

View File

@@ -1,4 +1,4 @@
from typing import Callable, Dict, Optional
from typing import Callable, Optional
from django.core.exceptions import ValidationError
from django.http import HttpRequest, HttpResponse
@@ -68,7 +68,7 @@ def get_topic_based_on_event(payload: WildValue, event: str) -> str:
return get_repository_name(payload) # nocoverage
EVENT_FUNCTION_MAPPER: Dict[str, Callable[[WildValue], str]] = {
EVENT_FUNCTION_MAPPER: dict[str, Callable[[WildValue], str]] = {
"repo-push": get_push_commits_body,
}