diff options
Diffstat (limited to 'python/attr/validators.pyi')
-rw-r--r-- | python/attr/validators.pyi | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/python/attr/validators.pyi b/python/attr/validators.pyi deleted file mode 100644 index abbaedf..0000000 --- a/python/attr/validators.pyi +++ /dev/null @@ -1,14 +0,0 @@ -from typing import Container, List, Union, TypeVar, Type, Any, Optional, Tuple -from . import _ValidatorType - -_T = TypeVar("_T") - -def instance_of( - type: Union[Tuple[Type[_T], ...], Type[_T]] -) -> _ValidatorType[_T]: ... -def provides(interface: Any) -> _ValidatorType[Any]: ... -def optional( - validator: Union[_ValidatorType[_T], List[_ValidatorType[_T]]] -) -> _ValidatorType[Optional[_T]]: ... -def in_(options: Container[_T]) -> _ValidatorType[_T]: ... -def and_(*validators: _ValidatorType[_T]) -> _ValidatorType[_T]: ... |