mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 15:57:08 +08:00
run black over stubs, add checking to travis
This commit is contained in:
@@ -12,9 +12,7 @@ class TranslatableFile:
|
||||
file: str = ...
|
||||
dirpath: str = ...
|
||||
locale_dir: str = ...
|
||||
def __init__(
|
||||
self, dirpath: str, file_name: str, locale_dir: Any
|
||||
) -> None: ...
|
||||
def __init__(self, dirpath: str, file_name: str, locale_dir: Any) -> None: ...
|
||||
def __eq__(self, other: TranslatableFile) -> bool: ...
|
||||
def __lt__(self, other: TranslatableFile) -> bool: ...
|
||||
@property
|
||||
@@ -24,9 +22,7 @@ class BuildFile:
|
||||
command: django.core.management.commands.makemessages.Command = ...
|
||||
domain: str = ...
|
||||
translatable: django.core.management.commands.makemessages.TranslatableFile = ...
|
||||
def __init__(
|
||||
self, command: Command, domain: str, translatable: TranslatableFile
|
||||
) -> None: ...
|
||||
def __init__(self, command: Command, domain: str, translatable: TranslatableFile) -> None: ...
|
||||
def is_templatized(self) -> bool: ...
|
||||
def path(self) -> str: ...
|
||||
def work_path(self) -> str: ...
|
||||
@@ -67,8 +63,6 @@ class Command(BaseCommand):
|
||||
def remove_potfiles(self) -> None: ...
|
||||
def find_files(self, root: str) -> List[TranslatableFile]: ...
|
||||
def process_files(self, file_list: List[TranslatableFile]) -> None: ...
|
||||
def process_locale_dir(
|
||||
self, locale_dir: Any, files: List[TranslatableFile]
|
||||
) -> None: ...
|
||||
def process_locale_dir(self, locale_dir: Any, files: List[TranslatableFile]) -> None: ...
|
||||
def write_po_file(self, potfile: str, locale: str) -> None: ...
|
||||
def copy_plural_forms(self, msgs: str, locale: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user