Skip to content

Commit c417942

Browse files
PIG208timabbott
authored andcommitted
caching: Make sender type optional for flush_cache.
That's the correct Django interface for this function.
1 parent 2972e92 commit c417942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zerver/apps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import logging
2-
from typing import Any
2+
from typing import Any, Optional
33

44
from django.apps import AppConfig
55
from django.conf import settings
66
from django.core.cache import cache
77
from django.db.models.signals import post_migrate
88

99

10-
def flush_cache(sender: AppConfig, **kwargs: Any) -> None:
10+
def flush_cache(sender: Optional[AppConfig], **kwargs: Any) -> None:
1111
logging.info("Clearing memcached cache after migrations")
1212
cache.clear()
1313

0 commit comments

Comments
 (0)