ruff: Fix UP007 Use X | Y for type annotations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:23 -07:00
committed by Tim Abbott
parent e08a24e47f
commit 531b34cb4c
355 changed files with 2759 additions and 3029 deletions

View File

@@ -1,4 +1,4 @@
from typing import Optional, TypedDict
from typing import TypedDict
from django.core.validators import MinLengthValidator, RegexValidator
from django.db import models
@@ -16,8 +16,8 @@ class EmojiInfo(TypedDict):
name: str
source_url: str
deactivated: bool
author_id: Optional[int]
still_url: Optional[str]
author_id: int | None
still_url: str | None
def get_all_custom_emoji_for_realm_cache_key(realm_id: int) -> str: