Update BaseCommand.requires_system_checks for django >=3.2 (#600)

- the documentation for this specific change in django can be seen at https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/#django.core.management.BaseCommand.requires_system_checks
This commit is contained in:
Abhyudai
2021-04-22 21:41:22 +05:30
committed by GitHub
parent d4c1ed2ce0
commit 9e8e4363b1

View File

@@ -4,6 +4,7 @@ from typing import Any, Callable, List, Optional, Union, Tuple
from django.apps.config import AppConfig
from django.core.management.color import Style
from django.core.checks import Tags
class CommandError(Exception): ...
class SystemCheckError(CommandError): ...
@@ -38,7 +39,7 @@ class BaseCommand:
help: str = ...
output_transaction: bool = ...
requires_migrations_checks: bool = ...
requires_system_checks: bool = ...
requires_system_checks: Union[bool, List[Tags], Tuple[Tags, ...], str] = ...
base_stealth_options: Tuple[str, ...] = ...
stealth_options: Tuple[str, ...] = ...
stdout: OutputWrapper = ...