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:
Rob Percival
2022-01-31 17:28:32 +00:00
committed by GitHub
parent 8843acde3e
commit 74083c9f8a

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