massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / attr / validators.pyi
1 from typing import Container, List, Union, TypeVar, Type, Any, Optional, Tuple\r
2 from . import _ValidatorType\r
3 \r
4 _T = TypeVar('_T')\r
5 \r
6 def instance_of(type: Union[Tuple[Type[_T], ...], Type[_T]]) -> _ValidatorType[_T]: ...\r
7 def provides(interface: Any) -> _ValidatorType[Any]: ...\r
8 def optional(validator: Union[_ValidatorType[_T], List[_ValidatorType[_T]]]) -> _ValidatorType[Optional[_T]]: ...\r
9 def in_(options: Container[_T]) -> _ValidatorType[_T]: ...\r
10 def and_(*validators: _ValidatorType[_T]) -> _ValidatorType[_T]: ...\r