mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
18 lines
653 B
Python
18 lines
653 B
Python
from typing import Any, Dict, Iterable, Mapping, Optional
|
|
|
|
from django.core.validators import MaxLengthValidator, MaxValueValidator, MinLengthValidator, MinValueValidator
|
|
|
|
class ArrayMaxLengthValidator(MaxLengthValidator): ...
|
|
class ArrayMinLengthValidator(MinLengthValidator): ...
|
|
|
|
class KeysValidator:
|
|
messages: Dict[str, str] = ...
|
|
strict: bool = ...
|
|
def __init__(
|
|
self, keys: Iterable[str], strict: bool = ..., messages: Optional[Mapping[str, str]] = ...
|
|
) -> None: ...
|
|
def __call__(self, value: Any) -> None: ...
|
|
|
|
class RangeMaxValueValidator(MaxValueValidator): ...
|
|
class RangeMinValueValidator(MinValueValidator): ...
|