ruff: Fix UP033 Use @functools.cache.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-04-01 15:19:08 -07:00
committed by Tim Abbott
parent fd970e0520
commit a82a3eb4d7
4 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import traceback
import uuid
from collections import deque
from contextlib import suppress
from functools import lru_cache
from functools import cache
from typing import (
AbstractSet,
Any,
@@ -1110,7 +1110,7 @@ def process_message_event(
recipient_type_name: str = wide_dict["type"]
sending_client: str = wide_dict["client"]
@lru_cache(maxsize=None)
@cache
def get_client_payload(
apply_markdown: bool, client_gravatar: bool, can_access_sender: bool
) -> Dict[str, Any]: