mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 16:27:09 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user