diff --git a/stubs/frozendict/@tests/stubtest_allowlist.txt b/stubs/frozendict/@tests/stubtest_allowlist.txt deleted file mode 100644 index eb99e759a..000000000 --- a/stubs/frozendict/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,5 +0,0 @@ -frozendict.FrozenOrderedDict -frozendict.frozendict.__hash__ -frozendict.frozendict.__new__ -frozendict.frozendict.__repr__ # forwards args to super -frozendict.frozendict.copy diff --git a/stubs/frozendict/METADATA.toml b/stubs/frozendict/METADATA.toml deleted file mode 100644 index 6d1bf4d3c..000000000 --- a/stubs/frozendict/METADATA.toml +++ /dev/null @@ -1,2 +0,0 @@ -version = "2.0.*" -obsolete_since = "2.2.0" diff --git a/stubs/frozendict/frozendict.pyi b/stubs/frozendict/frozendict.pyi deleted file mode 100644 index 03c41f4d2..000000000 --- a/stubs/frozendict/frozendict.pyi +++ /dev/null @@ -1,27 +0,0 @@ -import collections -from _typeshed import Self -from collections.abc import Iterable, Iterator, Mapping -from typing import Any, Generic, TypeVar, overload - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class frozendict(Mapping[_KT, _VT], Generic[_KT, _VT]): - - dict_cls: type[dict[Any, Any]] = ... - @overload - def __init__(self, **kwargs: _VT) -> None: ... - @overload - def __init__(self, mapping: Mapping[_KT, _VT]) -> None: ... - @overload - def __init__(self, iterable: Iterable[tuple[_KT, _VT]]) -> None: ... - def __getitem__(self, key: _KT) -> _VT: ... - def __contains__(self, __key: object) -> bool: ... - def copy(self: Self, **add_or_replace: _VT) -> Self: ... - def __iter__(self) -> Iterator[_KT]: ... - def __len__(self) -> int: ... - def __hash__(self) -> int: ... - -class FrozenOrderedDict(frozendict[_KT, _VT]): - - dict_cls: type[collections.OrderedDict[Any, Any]] = ...