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

@@ -1,6 +1,6 @@
import pickle
from functools import lru_cache
from typing import Any, Dict
from typing import Any
from django_bmemcached.memcached import BMemcached
@@ -10,7 +10,7 @@ def _get_bmemcached(location: str, params: bytes) -> BMemcached:
return BMemcached(location, pickle.loads(params)) # noqa: S301
def SingletonBMemcached(location: str, params: Dict[str, Any]) -> BMemcached:
def SingletonBMemcached(location: str, params: dict[str, Any]) -> BMemcached:
# Django instantiates the cache backend per-task to guard against
# thread safety issues, but BMemcached is already thread-safe and
# does its own per-thread pooling, so make sure we instantiate only