mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +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
@@ -43,6 +43,7 @@ from django.core.management.base import CommandParser
|
||||
from django.core.management.commands import makemessages
|
||||
from django.template.base import BLOCK_TAG_END, BLOCK_TAG_START
|
||||
from django.utils.translation import template
|
||||
from typing_extensions import override
|
||||
|
||||
strip_whitespace_right = re.compile(
|
||||
f"({BLOCK_TAG_START}-?\\s*(trans|pluralize).*?-{BLOCK_TAG_END})\\s+"
|
||||
@@ -79,6 +80,7 @@ class Command(makemessages.Command):
|
||||
for func, tag in tags:
|
||||
xgettext_options += [f'--keyword={func}:1,"{tag}"']
|
||||
|
||||
@override
|
||||
def add_arguments(self, parser: CommandParser) -> None:
|
||||
super().add_arguments(parser)
|
||||
parser.add_argument(
|
||||
@@ -97,6 +99,7 @@ class Command(makemessages.Command):
|
||||
help="Namespace of the frontend locale file",
|
||||
)
|
||||
|
||||
@override
|
||||
def handle(self, *args: Any, **options: Any) -> None:
|
||||
self.handle_django_locales(*args, **options)
|
||||
self.handle_frontend_locales(**options)
|
||||
|
||||
Reference in New Issue
Block a user