mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
ruff: Fix UP006 Use list instead of List for type annotation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2214b3904
commit
e08a24e47f
@@ -6,7 +6,7 @@ import traceback
|
||||
from contextlib import suppress
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from logging import Logger
|
||||
from typing import Optional, Tuple, Union
|
||||
from typing import Optional, Union
|
||||
|
||||
import orjson
|
||||
from django.conf import settings
|
||||
@@ -39,7 +39,7 @@ class _RateLimitFilter:
|
||||
handling_exception = threading.local()
|
||||
should_reset_handling_exception = False
|
||||
|
||||
def can_use_remote_cache(self) -> Tuple[bool, bool]:
|
||||
def can_use_remote_cache(self) -> tuple[bool, bool]:
|
||||
if getattr(self.handling_exception, "value", False):
|
||||
# If we're processing an exception that occurred
|
||||
# while handling an exception, this almost
|
||||
|
||||
Reference in New Issue
Block a user