mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
ruff: Fix UP007 Use X | Y for type annotations.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e08a24e47f
commit
531b34cb4c
@@ -1,5 +1,3 @@
|
||||
from typing import Optional
|
||||
|
||||
from django.db import transaction
|
||||
from django.utils.timezone import now as timezone_now
|
||||
|
||||
@@ -11,7 +9,7 @@ from zerver.tornado.django_api import send_event_on_commit
|
||||
|
||||
@transaction.atomic(durable=True)
|
||||
def do_change_icon_source(
|
||||
realm: Realm, icon_source: str, *, acting_user: Optional[UserProfile]
|
||||
realm: Realm, icon_source: str, *, acting_user: UserProfile | None
|
||||
) -> None:
|
||||
realm.icon_source = icon_source
|
||||
realm.icon_version += 1
|
||||
|
||||
Reference in New Issue
Block a user