Tighten management.get_commands type (#1074)

get_commands has not actually returned BaseCommand items since Django
1.4.  See https://github.com/django/django/pull/15876.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2022-07-24 00:38:32 -07:00
committed by GitHub
parent f3f80164a8
commit 20f0702f86

View File

@@ -5,7 +5,7 @@ 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, Union[str, BaseCommand]]: ...
def get_commands() -> Dict[str, str]: ...
def call_command(command_name: Union[BaseCommand, str], *args: Any, **options: Any) -> str: ...
class ManagementUtility: