massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / characteristic / __init__.pyi
1 from typing import Sequence, Callable, Union, Any, Optional, AnyStr, TypeVar, Type\r
2 \r
3 def with_repr(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...\r
4 def with_cmp(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...\r
5 def with_init(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...\r
6 def immutable(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...\r
7 \r
8 def strip_leading_underscores(attribute_name: AnyStr) -> AnyStr: ...\r
9 \r
10 NOTHING = Any\r
11 \r
12 _T = TypeVar('_T')\r
13 \r
14 def attributes(\r
15     attrs: Sequence[Union[AnyStr, Attribute]],\r
16     apply_with_cmp: bool = ...,\r
17     apply_with_init: bool = ...,\r
18     apply_with_repr: bool = ...,\r
19     apply_immutable: bool = ...,\r
20     store_attributes: Optional[Callable[[type, Attribute], Any]] = ...,\r
21     **kw: Optional[dict]) -> Callable[[Type[_T]], Type[_T]]: ...\r
22 \r
23 class Attribute:\r
24     def __init__(\r
25         self,\r
26         name: AnyStr,\r
27         exclude_from_cmp: bool = ...,\r
28         exclude_from_init: bool = ...,\r
29         exclude_from_repr: bool = ...,\r
30         exclude_from_immutable: bool = ...,\r
31         default_value: Any = ...,\r
32         default_factory: Optional[Callable[[None], Any]] = ...,\r
33         instance_of: Optional[Any] = ...,\r
34         init_aliaser: Optional[Callable[[AnyStr], AnyStr]] = ...) -> None: ...\r