mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +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
@@ -14,7 +14,7 @@ import difflib
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Any, Callable, Optional
|
||||
from typing import Any, Callable
|
||||
|
||||
import orjson
|
||||
|
||||
@@ -87,7 +87,7 @@ DEPRECATED_EVENTS = [
|
||||
]
|
||||
|
||||
|
||||
def get_event_checker(event: dict[str, Any]) -> Optional[Callable[[str, dict[str, Any]], None]]:
|
||||
def get_event_checker(event: dict[str, Any]) -> Callable[[str, dict[str, Any]], None] | None:
|
||||
name = event["type"]
|
||||
if "op" in event:
|
||||
name += "_" + event["op"]
|
||||
|
||||
Reference in New Issue
Block a user