mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
Correct return type of get_commands() (#838)
According to the docstring for this function, "the instantiated module can be placed in the dictionary in place of the application name".
This commit is contained in:
@@ -5,7 +5,7 @@ from .base import CommandError as CommandError
|
|||||||
|
|
||||||
def find_commands(management_dir: str) -> List[str]: ...
|
def find_commands(management_dir: str) -> List[str]: ...
|
||||||
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
def load_command_class(app_name: str, name: str) -> BaseCommand: ...
|
||||||
def get_commands() -> Dict[str, str]: ...
|
def get_commands() -> Dict[str, Union[str, BaseCommand]]: ...
|
||||||
def call_command(command_name: Union[Tuple[str], BaseCommand, str], *args: Any, **options: Any) -> str: ...
|
def call_command(command_name: Union[Tuple[str], BaseCommand, str], *args: Any, **options: Any) -> str: ...
|
||||||
|
|
||||||
class ManagementUtility:
|
class ManagementUtility:
|
||||||
|
|||||||
Reference in New Issue
Block a user