mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
mypy: Enable new error explicit-override.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
d257002ad8
commit
a50eb2e809
@@ -8,6 +8,7 @@ from django.conf import settings
|
||||
from django.contrib.staticfiles.storage import ManifestStaticFilesStorage
|
||||
from django.core.files.base import File
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from typing_extensions import override
|
||||
|
||||
if settings.DEBUG:
|
||||
from django.contrib.staticfiles.finders import find
|
||||
@@ -22,6 +23,7 @@ else:
|
||||
|
||||
|
||||
class IgnoreBundlesManifestStaticFilesStorage(ManifestStaticFilesStorage):
|
||||
@override
|
||||
def hashed_name(
|
||||
self, name: str, content: Optional["File[bytes]"] = None, filename: Optional[str] = None
|
||||
) -> str:
|
||||
|
||||
Reference in New Issue
Block a user