From 7b18e354f112564cc4b09ebdf09bcd053ce2468b Mon Sep 17 00:00:00 2001 From: PIG208 <39874143+PIG208@users.noreply.github.com> Date: Mon, 8 Aug 2022 17:31:34 -0400 Subject: [PATCH] Add preset options list to makemessages command. (#1091) These options can be found here: https://github.com/django/django/blob/0756c61f2ada56e4ae625589099c0141a77737eb/django/core/management/commands/makemessages.py#L222-L225 Signed-off-by: Zixuan James Li --- django-stubs/core/management/commands/makemessages.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django-stubs/core/management/commands/makemessages.pyi b/django-stubs/core/management/commands/makemessages.pyi index 8f8e5fd..45a35c5 100644 --- a/django-stubs/core/management/commands/makemessages.pyi +++ b/django-stubs/core/management/commands/makemessages.pyi @@ -1,4 +1,4 @@ -from typing import Any, Optional, Pattern, Type +from typing import Any, List, Optional, Pattern, Type from django.core.management.base import BaseCommand @@ -36,3 +36,7 @@ def write_pot_file(potfile: str, msgs: str) -> None: ... class Command(BaseCommand): translatable_file_class: Type[TranslatableFile] = ... build_file_class: Type[BuildFile] = ... + msgmerge_options: List[str] = ... + msguniq_options: List[str] = ... + msgattrib_options: List[str] = ... + xgettext_options: List[str] = ...