mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 18:05:58 +08:00
enable test folders: select_for_update, i18n, httpwrappers, auth_tests, extra_regress (#107)
This commit is contained in:
@@ -71,7 +71,8 @@ class EmailMessage:
|
||||
reply_to: Optional[Union[List[Optional[str]], str]] = ...,
|
||||
) -> None: ...
|
||||
def get_connection(self, fail_silently: bool = ...) -> Any: ...
|
||||
def message(self) -> MIMEMixin: ...
|
||||
# TODO: when typeshed gets more types for email.Message, move it to MIMEMessage, now it has too many false-positives
|
||||
def message(self) -> Any: ...
|
||||
def recipients(self) -> List[str]: ...
|
||||
def send(self, fail_silently: bool = ...) -> int: ...
|
||||
def attach(
|
||||
|
||||
45
django-stubs/core/management/commands/makemessages.pyi
Normal file
45
django-stubs/core/management/commands/makemessages.pyi
Normal file
@@ -0,0 +1,45 @@
|
||||
import os
|
||||
import re
|
||||
from typing import Any, Pattern, Type, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.jslex import prepare_js_for_gettext
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import templatize
|
||||
|
||||
plural_forms_re: Pattern = ...
|
||||
STATUS_OK: int = ...
|
||||
NO_LOCALE_DIR: Any = ...
|
||||
|
||||
def check_programs(*programs: str) -> None: ...
|
||||
|
||||
class TranslatableFile:
|
||||
dirpath: str
|
||||
file_name: str
|
||||
locale_dir: str
|
||||
def __init__(self, dirpath: str, file_name: str, locale_dir: Optional[str]) -> None: ...
|
||||
|
||||
class BuildFile:
|
||||
"""
|
||||
Represent the state of a translatable file during the build process.
|
||||
"""
|
||||
|
||||
def __init__(self, command: BaseCommand, domain: str, translatable: TranslatableFile) -> None: ...
|
||||
@property
|
||||
def is_templatized(self) -> bool: ...
|
||||
@property
|
||||
def path(self) -> str: ...
|
||||
@property
|
||||
def work_path(self) -> str: ...
|
||||
def preprocess(self) -> None: ...
|
||||
def postprocess_messages(self, msgs: str) -> str: ...
|
||||
def cleanup(self) -> None: ...
|
||||
|
||||
def normalize_eols(raw_contents: str) -> str: ...
|
||||
def write_pot_file(potfile: str, msgs: str) -> None: ...
|
||||
|
||||
class Command(BaseCommand):
|
||||
translatable_file_class: Type[TranslatableFile] = ...
|
||||
build_file_class: Type[BuildFile] = ...
|
||||
Reference in New Issue
Block a user