From f82b28e8356c0751b737fbf56ceeb9b5c9325fd9 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Sat, 11 Jun 2016 15:48:44 +0530 Subject: [PATCH] zerver/lib/cache.py: Fix get_cache_backend's annotation. --- zerver/lib/cache.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/lib/cache.py b/zerver/lib/cache.py index 9fd99e1be1..584f0d3c1f 100644 --- a/zerver/lib/cache.py +++ b/zerver/lib/cache.py @@ -7,6 +7,7 @@ from django.core.cache import cache as djcache from django.core.cache import get_cache from django.conf import settings from django.db.models import Q +from django.core.cache.backends.base import BaseCache from typing import Any, Callable, Iterable, Optional, Union, TypeVar @@ -92,7 +93,7 @@ def bounce_key_prefix_for_testing(test_name): KEY_PREFIX = test_name + u':' + text_type(os.getpid()) + u':' def get_cache_backend(cache_name): - # type: (Optional[str]) -> get_cache + # type: (Optional[str]) -> BaseCache if cache_name is None: return djcache return get_cache(cache_name)