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,7 +1,7 @@
# https://github.com/typeddjango/django-stubs/issues/1698
# mypy: disable-error-code="explicit-override"
from typing import List, TypedDict, Union
from typing import TypedDict, Union
from django.conf import settings
from django.db import models
@@ -133,7 +133,7 @@ class APIScheduledStreamMessageDict(TypedDict):
class APIScheduledDirectMessageDict(TypedDict):
scheduled_message_id: int
to: List[int]
to: list[int]
type: str
content: str
rendered_content: str