Remove stubs for characteristic (#8040)

This commit is contained in:
Alex Waygood
2022-06-08 20:18:13 +01:00
committed by GitHub
parent 60507a08a2
commit c449ddde56
2 changed files with 0 additions and 40 deletions

View File

@@ -1,2 +0,0 @@
version = "14.3.*"
no_longer_updated = true

View File

@@ -1,38 +0,0 @@
from collections.abc import Callable, Sequence
from typing import Any, AnyStr, TypeVar
def with_repr(attrs: Sequence[AnyStr | Attribute]) -> Callable[..., Any]: ...
def with_cmp(attrs: Sequence[AnyStr | Attribute]) -> Callable[..., Any]: ...
def with_init(attrs: Sequence[AnyStr | Attribute]) -> Callable[..., Any]: ...
def immutable(attrs: Sequence[AnyStr | Attribute]) -> Callable[..., Any]: ...
def strip_leading_underscores(attribute_name: AnyStr) -> AnyStr: ...
class _Nothing: ...
NOTHING: _Nothing
_T = TypeVar("_T")
def attributes(
attrs: Sequence[AnyStr | Attribute],
apply_with_cmp: bool = ...,
apply_with_init: bool = ...,
apply_with_repr: bool = ...,
apply_immutable: bool = ...,
store_attributes: Callable[[type, Attribute], Any] | None = ...,
**kw: dict[Any, Any] | None,
) -> Callable[[type[_T]], type[_T]]: ...
class Attribute:
def __init__(
self,
name: AnyStr,
exclude_from_cmp: bool = ...,
exclude_from_init: bool = ...,
exclude_from_repr: bool = ...,
exclude_from_immutable: bool = ...,
default_value: Any = ...,
default_factory: Callable[[None], Any] | None = ...,
instance_of: Any | None = ...,
init_aliaser: Callable[[AnyStr], AnyStr] | None = ...,
) -> None: ...