From c449ddde56bea293e164549038c7285cefe6373b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 8 Jun 2022 20:18:13 +0100 Subject: [PATCH] Remove stubs for `characteristic` (#8040) --- stubs/characteristic/METADATA.toml | 2 - .../characteristic/__init__.pyi | 38 ------------------- 2 files changed, 40 deletions(-) delete mode 100644 stubs/characteristic/METADATA.toml delete mode 100644 stubs/characteristic/characteristic/__init__.pyi diff --git a/stubs/characteristic/METADATA.toml b/stubs/characteristic/METADATA.toml deleted file mode 100644 index 3a65d354a..000000000 --- a/stubs/characteristic/METADATA.toml +++ /dev/null @@ -1,2 +0,0 @@ -version = "14.3.*" -no_longer_updated = true diff --git a/stubs/characteristic/characteristic/__init__.pyi b/stubs/characteristic/characteristic/__init__.pyi deleted file mode 100644 index 92abbd5a4..000000000 --- a/stubs/characteristic/characteristic/__init__.pyi +++ /dev/null @@ -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: ...