mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-13 00:20:17 +08:00
move generated stubs to separate directory, too messty
This commit is contained in:
1 parent
7436d641e3
commit
96cd3ddb27
446 files changed
+58
-71
No files matched your search
@@ -0,0 +1,25 @@
|
||||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
def find_commands(management_dir: str) -> List[str]: ...
|
||||
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
||||
def get_commands() -> Dict[str, str]: ...
|
||||
def call_command(
|
||||
command_name: Union[Tuple[str], BaseCommand, str],
|
||||
*args: Any,
|
||||
**options: Any
|
||||
) -> Optional[str]: ...
|
||||
|
||||
class ManagementUtility:
|
||||
argv: List[str] = ...
|
||||
prog_name: str = ...
|
||||
settings_exception: None = ...
|
||||
def __init__(self, argv: List[str] = ...) -> None: ...
|
||||
def main_help_text(self, commands_only: bool = ...): ...
|
||||
def fetch_command(self, subcommand: str) -> BaseCommand: ...
|
||||
def autocomplete(self) -> None: ...
|
||||
def execute(self) -> None: ...
|
||||
|
||||
def execute_from_command_line(argv: List[str] = ...) -> None: ...
|
||||
@@ -0,0 +1,111 @@
|
||||
from argparse import ArgumentParser, HelpFormatter, Namespace
|
||||
from io import StringIO, TextIOBase, TextIOWrapper
|
||||
from typing import Any, Callable, List, Optional, Tuple, Union
|
||||
|
||||
from django.apps.config import AppConfig
|
||||
|
||||
|
||||
class CommandError(Exception): ...
|
||||
class SystemCheckError(CommandError): ...
|
||||
|
||||
class CommandParser(ArgumentParser):
|
||||
add_help: bool
|
||||
allow_abbrev: bool
|
||||
argument_default: None
|
||||
conflict_handler: str
|
||||
description: str
|
||||
epilog: None
|
||||
formatter_class: Type[django.core.management.base.DjangoHelpFormatter]
|
||||
fromfile_prefix_chars: None
|
||||
prefix_chars: str
|
||||
prog: str
|
||||
usage: None
|
||||
missing_args_message: None = ...
|
||||
called_from_command_line: bool = ...
|
||||
def __init__(self, **kwargs: Any) -> None: ...
|
||||
def parse_args(
|
||||
self, args: List[str] = ..., namespace: None = ...
|
||||
) -> Namespace: ...
|
||||
def error(self, message: str) -> Any: ...
|
||||
|
||||
def handle_default_options(options: Namespace) -> None: ...
|
||||
def no_translations(handle_func: Callable) -> Callable: ...
|
||||
|
||||
class DjangoHelpFormatter(HelpFormatter):
|
||||
show_last: Any = ...
|
||||
def add_usage(
|
||||
self, usage: None, actions: List[Any], *args: Any, **kwargs: Any
|
||||
) -> None: ...
|
||||
def add_arguments(self, actions: List[Any]) -> None: ...
|
||||
|
||||
class OutputWrapper(TextIOBase):
|
||||
@property
|
||||
def style_func(self): ...
|
||||
@style_func.setter
|
||||
def style_func(self, style_func: Any): ...
|
||||
style_func: Any = ...
|
||||
ending: str = ...
|
||||
def __init__(
|
||||
self,
|
||||
out: Union[StringIO, TextIOWrapper],
|
||||
style_func: Optional[Callable] = ...,
|
||||
ending: str = ...,
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Callable: ...
|
||||
def isatty(self) -> bool: ...
|
||||
def write(
|
||||
self,
|
||||
msg: str,
|
||||
style_func: Optional[Callable] = ...,
|
||||
ending: Optional[str] = ...,
|
||||
) -> None: ...
|
||||
|
||||
class BaseCommand:
|
||||
help: str = ...
|
||||
output_transaction: bool = ...
|
||||
requires_migrations_checks: bool = ...
|
||||
requires_system_checks: bool = ...
|
||||
base_stealth_options: Any = ...
|
||||
stealth_options: Any = ...
|
||||
stdout: django.core.management.base.OutputWrapper = ...
|
||||
stderr: django.core.management.base.OutputWrapper = ...
|
||||
style: django.core.management.color.Style = ...
|
||||
def __init__(
|
||||
self,
|
||||
stdout: Optional[StringIO] = ...,
|
||||
stderr: Optional[StringIO] = ...,
|
||||
no_color: bool = ...,
|
||||
) -> None: ...
|
||||
def get_version(self) -> str: ...
|
||||
def create_parser(
|
||||
self, prog_name: str, subcommand: str
|
||||
) -> CommandParser: ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def print_help(self, prog_name: str, subcommand: str) -> None: ...
|
||||
def run_from_argv(self, argv: List[str]) -> None: ...
|
||||
def execute(
|
||||
self, *args: Any, **options: Any
|
||||
) -> Optional[Union[Tuple, str]]: ...
|
||||
def check(
|
||||
self,
|
||||
app_configs: Optional[List[AppConfig]] = ...,
|
||||
tags: Optional[List[str]] = ...,
|
||||
display_num_errors: bool = ...,
|
||||
include_deployment_checks: bool = ...,
|
||||
fail_level: int = ...,
|
||||
) -> None: ...
|
||||
def check_migrations(self) -> None: ...
|
||||
def handle(self, *args: Any, **options: Any) -> None: ...
|
||||
|
||||
class AppCommand(BaseCommand):
|
||||
missing_args_message: str = ...
|
||||
def add_arguments(self, parser: Any) -> None: ...
|
||||
def handle(self, *app_labels: Any, **options: Any): ...
|
||||
def handle_app_config(self, app_config: Any, **options: Any) -> None: ...
|
||||
|
||||
class LabelCommand(BaseCommand):
|
||||
label: str = ...
|
||||
missing_args_message: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *labels: Any, **options: Any) -> str: ...
|
||||
def handle_label(self, label: Any, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,10 @@
|
||||
from typing import Optional
|
||||
|
||||
|
||||
def supports_color() -> bool: ...
|
||||
|
||||
class Style: ...
|
||||
|
||||
def make_style(config_string: str = ...) -> Style: ...
|
||||
def no_style(): ...
|
||||
def color_style() -> Style: ...
|
||||
Whitespace-only changes.
@@ -0,0 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *app_labels: Any, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,20 @@
|
||||
from typing import Any, List, Optional, Tuple
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
def has_bom(fn: str) -> bool: ...
|
||||
def is_writable(path: str) -> bool: ...
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
program: str = ...
|
||||
program_options: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: Any = ...
|
||||
def handle(self, **options: Any) -> None: ...
|
||||
def compile_messages(self, locations: List[Tuple[str, str]]) -> None: ...
|
||||
@@ -0,0 +1,17 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: Any = ...
|
||||
def handle(self, *tablenames: Any, **options: Any) -> None: ...
|
||||
def create_table(
|
||||
self, database: str, tablename: str, dry_run: bool
|
||||
) -> None: ...
|
||||
@@ -0,0 +1,14 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class ProxyModelWarning(Warning): ...
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *app_labels: Any, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
help: str = ...
|
||||
stealth_options: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
style: django.core.management.color.Style = ...
|
||||
def handle(self, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,32 @@
|
||||
from collections import OrderedDict
|
||||
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
from django.db.backends.base.introspection import FieldInfo
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
stealth_options: Any = ...
|
||||
db_module: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, **options: Any) -> None: ...
|
||||
def handle_inspection(self, options: Dict[str, Any]) -> Iterator[str]: ...
|
||||
def normalize_col_name(
|
||||
self, col_name: str, used_column_names: List[str], is_relation: bool
|
||||
) -> Tuple[str, Dict[str, str], List[str]]: ...
|
||||
def get_field_type(
|
||||
self, connection: DatabaseWrapper, table_name: str, row: FieldInfo
|
||||
) -> Tuple[str, OrderedDict, List[str]]: ...
|
||||
def get_meta(
|
||||
self,
|
||||
table_name: str,
|
||||
constraints: Dict[str, Dict[str, Union[List[str], bool]]],
|
||||
column_to_field_name: Dict[str, str],
|
||||
is_view: bool,
|
||||
) -> List[str]: ...
|
||||
@@ -0,0 +1,51 @@
|
||||
import zipfile
|
||||
from typing import Any, List, Optional, Tuple
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
has_bz2: bool
|
||||
READ_STDIN: str
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
missing_args_message: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
ignore: Any = ...
|
||||
using: Any = ...
|
||||
app_label: Any = ...
|
||||
verbosity: Any = ...
|
||||
format: Any = ...
|
||||
def handle(self, *fixture_labels: Any, **options: Any) -> None: ...
|
||||
fixture_count: int = ...
|
||||
loaded_object_count: int = ...
|
||||
fixture_object_count: int = ...
|
||||
models: Any = ...
|
||||
serialization_formats: Any = ...
|
||||
compression_formats: Any = ...
|
||||
def loaddata(self, fixture_labels: Tuple[str]) -> None: ...
|
||||
def load_label(self, fixture_label: str) -> None: ...
|
||||
def find_fixtures(
|
||||
self, fixture_label: str
|
||||
) -> List[Tuple[str, Optional[str], str]]: ...
|
||||
def fixture_dirs(self) -> List[str]: ...
|
||||
def parse_name(
|
||||
self, fixture_name: str
|
||||
) -> Tuple[str, Optional[str], Optional[str]]: ...
|
||||
|
||||
class SingleZipReader(zipfile.ZipFile):
|
||||
NameToInfo: Dict[str, zipfile.ZipInfo]
|
||||
compression: int
|
||||
debug: int
|
||||
filelist: List[zipfile.ZipInfo]
|
||||
filename: str
|
||||
fp: _io.BufferedReader
|
||||
mode: str
|
||||
pwd: None
|
||||
start_dir: int
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
def read(self) -> bytes: ...
|
||||
|
||||
def humanize(dirname: str) -> str: ...
|
||||
@@ -0,0 +1,74 @@
|
||||
from typing import Any, List, Optional, Tuple
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
plural_forms_re: Any
|
||||
STATUS_OK: int
|
||||
NO_LOCALE_DIR: Any
|
||||
|
||||
def check_programs(*programs: Any) -> None: ...
|
||||
|
||||
class TranslatableFile:
|
||||
file: str = ...
|
||||
dirpath: str = ...
|
||||
locale_dir: str = ...
|
||||
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
|
||||
def path(self) -> str: ...
|
||||
|
||||
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 is_templatized(self) -> bool: ...
|
||||
def path(self) -> str: ...
|
||||
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):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
translatable_file_class: Any = ...
|
||||
build_file_class: Any = ...
|
||||
requires_system_checks: bool = ...
|
||||
msgmerge_options: Any = ...
|
||||
msguniq_options: Any = ...
|
||||
msgattrib_options: Any = ...
|
||||
xgettext_options: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
domain: Any = ...
|
||||
verbosity: Any = ...
|
||||
symlinks: Any = ...
|
||||
ignore_patterns: Any = ...
|
||||
no_obsolete: Any = ...
|
||||
keep_pot: Any = ...
|
||||
extensions: Any = ...
|
||||
invoked_for_django: bool = ...
|
||||
locale_paths: Any = ...
|
||||
default_locale_path: Any = ...
|
||||
def handle(self, *args: Any, **options: Any) -> None: ...
|
||||
def gettext_version(self) -> Tuple[int, int]: ...
|
||||
def settings_available(self) -> bool: ...
|
||||
def build_potfiles(self) -> List[str]: ...
|
||||
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 write_po_file(self, potfile: str, locale: str) -> None: ...
|
||||
def copy_plural_forms(self, msgs: str, locale: str) -> str: ...
|
||||
@@ -0,0 +1,26 @@
|
||||
from typing import Any, Dict, List, Optional, Set
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
from django.db.migrations.loader import MigrationLoader
|
||||
from django.db.migrations.migration import Migration
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: int = ...
|
||||
interactive: bool = ...
|
||||
dry_run: bool = ...
|
||||
merge: bool = ...
|
||||
empty: bool = ...
|
||||
migration_name: None = ...
|
||||
def handle(self, *app_labels: Any, **options: Any): ...
|
||||
def write_migration_files(
|
||||
self, changes: Dict[str, List[Migration]]
|
||||
) -> None: ...
|
||||
def handle_merge(
|
||||
self, loader: MigrationLoader, conflicts: Dict[str, Set[str]]
|
||||
) -> None: ...
|
||||
@@ -0,0 +1,26 @@
|
||||
from typing import Any, Optional, Set
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
from django.db.migrations.migration import Migration
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: Any = ...
|
||||
interactive: Any = ...
|
||||
def handle(self, *args: Any, **options: Any) -> None: ...
|
||||
start: Any = ...
|
||||
def migration_progress_callback(
|
||||
self,
|
||||
action: str,
|
||||
migration: Optional[Migration] = ...,
|
||||
fake: bool = ...,
|
||||
) -> None: ...
|
||||
def sync_apps(
|
||||
self, connection: DatabaseWrapper, app_labels: Set[str]
|
||||
) -> None: ...
|
||||
@@ -0,0 +1,30 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.handlers.wsgi import WSGIHandler
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
naiveip_re: Any
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
stealth_options: Any = ...
|
||||
default_addr: str = ...
|
||||
default_addr_ipv6: str = ...
|
||||
default_port: str = ...
|
||||
protocol: str = ...
|
||||
server_cls: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def execute(self, *args: Any, **options: Any) -> None: ...
|
||||
def get_handler(self, *args: Any, **options: Any) -> WSGIHandler: ...
|
||||
use_ipv6: Any = ...
|
||||
addr: str = ...
|
||||
port: Any = ...
|
||||
def handle(self, *args: Any, **options: Any) -> None: ...
|
||||
def run(self, **options: Any) -> None: ...
|
||||
def inner_run(self, *args: Any, **options: Any) -> None: ...
|
||||
|
||||
BaseRunserverCommand = Command
|
||||
@@ -0,0 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
missing_args_message: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
@@ -0,0 +1,18 @@
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
from django.core.management import BaseCommand
|
||||
from django.core.management.base import CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
shells: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def ipython(self, options: Dict[str, Optional[Union[int, str]]]) -> Any: ...
|
||||
def bpython(self, options: Dict[str, Optional[Union[int, str]]]) -> Any: ...
|
||||
def python(self, options: Any) -> None: ...
|
||||
def handle(self, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,20 @@
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: Any = ...
|
||||
def handle(self, *args: Any, **options: Any) -> None: ...
|
||||
def show_list(
|
||||
self, connection: DatabaseWrapper, app_names: List[str] = ...
|
||||
) -> None: ...
|
||||
def show_plan(
|
||||
self, connection: DatabaseWrapper, app_names: List[str] = ...
|
||||
) -> None: ...
|
||||
@@ -0,0 +1,14 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
output_transaction: bool = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def execute(self, *args: Any, **options: Any) -> str: ...
|
||||
def handle(self, *args: Any, **options: Any) -> str: ...
|
||||
@@ -0,0 +1,15 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
verbosity: Any = ...
|
||||
interactive: Any = ...
|
||||
def handle(self, **options: Any) -> None: ...
|
||||
def find_migration(self, loader: Any, app_label: Any, name: Any): ...
|
||||
@@ -0,0 +1,2 @@
|
||||
class Command:
|
||||
def handle(self, *test_labels, **options): ...
|
||||
@@ -0,0 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
stderr: django.core.management.base.OutputWrapper
|
||||
stdout: django.core.management.base.OutputWrapper
|
||||
style: django.core.management.color.Style
|
||||
help: str = ...
|
||||
requires_system_checks: bool = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
def handle(self, *fixture_labels: Any, **options: Any) -> None: ...
|
||||
@@ -0,0 +1,19 @@
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from django.core.management.color import Style
|
||||
from django.db.backends.sqlite3.base import DatabaseWrapper
|
||||
|
||||
|
||||
def sql_flush(
|
||||
style: Style,
|
||||
connection: DatabaseWrapper,
|
||||
only_django: bool = ...,
|
||||
reset_sequences: bool = ...,
|
||||
allow_cascade: bool = ...,
|
||||
) -> List[str]: ...
|
||||
def emit_pre_migrate_signal(
|
||||
verbosity: int, interactive: bool, db: str, **kwargs: Any
|
||||
) -> None: ...
|
||||
def emit_post_migrate_signal(
|
||||
verbosity: int, interactive: bool, db: str, **kwargs: Any
|
||||
) -> None: ...
|
||||
@@ -0,0 +1,27 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandParser
|
||||
|
||||
|
||||
class TemplateCommand(BaseCommand):
|
||||
requires_system_checks: bool = ...
|
||||
url_schemes: Any = ...
|
||||
rewrite_template_suffixes: Any = ...
|
||||
def add_arguments(self, parser: CommandParser) -> None: ...
|
||||
app_or_project: Any = ...
|
||||
paths_to_remove: Any = ...
|
||||
verbosity: Any = ...
|
||||
def handle(
|
||||
self,
|
||||
app_or_project: Any,
|
||||
name: Any,
|
||||
target: Optional[Any] = ...,
|
||||
**options: Any
|
||||
): ...
|
||||
def handle_template(self, template: Any, subdir: Any): ...
|
||||
def validate_name(self, name: Any, app_or_project: Any) -> None: ...
|
||||
def download(self, url: Any): ...
|
||||
def splitext(self, the_path: Any): ...
|
||||
def extract(self, filename: Any): ...
|
||||
def is_url(self, template: Any): ...
|
||||
def make_writeable(self, filename: Any) -> None: ...
|
||||
@@ -0,0 +1,19 @@
|
||||
from typing import Any, List, Optional, Set, Tuple, Type
|
||||
|
||||
from django.apps.config import AppConfig
|
||||
from django.db.models.base import Model
|
||||
|
||||
from .base import CommandError
|
||||
|
||||
|
||||
def popen_wrapper(
|
||||
args: List[str], stdout_encoding: str = ...
|
||||
) -> Tuple[str, str, int]: ...
|
||||
def handle_extensions(extensions: List[str]) -> Set[str]: ...
|
||||
def find_command(
|
||||
cmd: str, path: None = ..., pathext: None = ...
|
||||
) -> Optional[str]: ...
|
||||
def get_random_secret_key(): ...
|
||||
def parse_apps_and_model_labels(
|
||||
labels: List[str]
|
||||
) -> Tuple[Set[Type[Model]], Set[AppConfig]]: ...
|
||||
Reference in new issue
Block a user