mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-21 11:21:20 +08:00
* Add lots of missing argument & return type hints Discovered by setting mypy options disallow_untyped_defs, disallow_incomplete_defs. * Sequence -> List * Fixes from review * Drop ordering_field * Revert ModelBackend.with_perm * typing_extensions.TypedDict instead * bla * Remove private method _get_lines_from_file * A few additions * Hints for BaseSpatialFeatures
22 lines
891 B
Python
22 lines
891 B
Python
from typing import Any, Dict, List, Optional, Union
|
|
|
|
from .base import BaseCommand as BaseCommand
|
|
from .base import CommandError as CommandError
|
|
|
|
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[BaseCommand, str], *args: Any, **options: Any) -> str: ...
|
|
|
|
class ManagementUtility:
|
|
argv: List[str] = ...
|
|
prog_name: str = ...
|
|
settings_exception: Optional[Exception] = ...
|
|
def __init__(self, argv: Optional[List[str]] = ...) -> None: ...
|
|
def main_help_text(self, commands_only: bool = ...) -> str: ...
|
|
def fetch_command(self, subcommand: str) -> BaseCommand: ...
|
|
def autocomplete(self) -> None: ...
|
|
def execute(self) -> None: ...
|
|
|
|
def execute_from_command_line(argv: Optional[List[str]] = ...) -> None: ...
|