mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-27 12:02:20 +08:00
20 lines
655 B
Python
20 lines
655 B
Python
from django.core.checks.messages import Warning
|
|
from typing import (
|
|
Callable,
|
|
List,
|
|
Optional,
|
|
Union,
|
|
)
|
|
|
|
|
|
class CheckRegistry:
|
|
def __init__(self) -> None: ...
|
|
def get_checks(self, include_deployment_checks: bool = ...) -> List[Callable]: ...
|
|
def register(self, check: Union[str, Callable] = ..., *tags, **kwargs) -> Callable: ...
|
|
def run_checks(
|
|
self,
|
|
app_configs: None = ...,
|
|
tags: Optional[List[str]] = ...,
|
|
include_deployment_checks: bool = ...
|
|
) -> Union[List[int], List[str], List[Warning]]: ...
|
|
def tag_exists(self, tag: str, include_deployment_checks: bool = ...) -> bool: ... |