ruff: Fix UP006 Use list instead of List for type annotation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:17 -07:00
committed by Tim Abbott
parent c2214b3904
commit e08a24e47f
457 changed files with 3588 additions and 3857 deletions

View File

@@ -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