mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-17 01:07:12 +08:00
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:
@@ -4,6 +4,7 @@ from typing import Any, Callable, List, Optional, Union, Tuple
|
|||||||
|
|
||||||
from django.apps.config import AppConfig
|
from django.apps.config import AppConfig
|
||||||
from django.core.management.color import Style
|
from django.core.management.color import Style
|
||||||
|
from django.core.checks import Tags
|
||||||
|
|
||||||
class CommandError(Exception): ...
|
class CommandError(Exception): ...
|
||||||
class SystemCheckError(CommandError): ...
|
class SystemCheckError(CommandError): ...
|
||||||
@@ -38,7 +39,7 @@ class BaseCommand:
|
|||||||
help: str = ...
|
help: str = ...
|
||||||
output_transaction: bool = ...
|
output_transaction: bool = ...
|
||||||
requires_migrations_checks: bool = ...
|
requires_migrations_checks: bool = ...
|
||||||
requires_system_checks: bool = ...
|
requires_system_checks: Union[bool, List[Tags], Tuple[Tags, ...], str] = ...
|
||||||
base_stealth_options: Tuple[str, ...] = ...
|
base_stealth_options: Tuple[str, ...] = ...
|
||||||
stealth_options: Tuple[str, ...] = ...
|
stealth_options: Tuple[str, ...] = ...
|
||||||
stdout: OutputWrapper = ...
|
stdout: OutputWrapper = ...
|
||||||
|
|||||||
Reference in New Issue
Block a user