mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-20 21:07:12 +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:
1 parent
f3f80164a8
commit
20f0702f86
1 file changed
+1
-1
@@ -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