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