mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 21:46:43 +08:00
21 lines
838 B
Python
21 lines
838 B
Python
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: ...
|