1 from typing import Any, AnyStr, Callable, Sequence, Type, TypeVar
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: ...
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]]: ...
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 = ...,