diff --git a/stubs/cachetools/@tests/stubtest_allowlist.txt b/stubs/cachetools/@tests/stubtest_allowlist.txt deleted file mode 100644 index b041adaf5ce4..000000000000 --- a/stubs/cachetools/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,26 +0,0 @@ -cachetools.Cache.get -cachetools.LFUCache.__delitem__ -cachetools.LFUCache.__getitem__ -cachetools.LFUCache.__setitem__ -cachetools.LRUCache.__delitem__ -cachetools.LRUCache.__getitem__ -cachetools.LRUCache.__setitem__ -cachetools.TTLCache.__delitem__ -cachetools.TTLCache.__getitem__ -cachetools.TTLCache.__setitem__ -cachetools.abc -cachetools.cache.Cache.get -cachetools.cache.DefaultMapping -cachetools.func.ttl_cache -cachetools.lfu.LFUCache.__delitem__ -cachetools.lfu.LFUCache.__getitem__ -cachetools.lfu.LFUCache.__setitem__ -cachetools.lru.Cache.get -cachetools.lru.LRUCache.__delitem__ -cachetools.lru.LRUCache.__getitem__ -cachetools.lru.LRUCache.__setitem__ -cachetools.rr.Cache.get -cachetools.ttl.Cache.get -cachetools.ttl.TTLCache.__delitem__ -cachetools.ttl.TTLCache.__getitem__ -cachetools.ttl.TTLCache.__setitem__ diff --git a/stubs/cachetools/METADATA.toml b/stubs/cachetools/METADATA.toml deleted file mode 100644 index de720977e07a..000000000000 --- a/stubs/cachetools/METADATA.toml +++ /dev/null @@ -1 +0,0 @@ -version = "4.2" diff --git a/stubs/cachetools/cachetools/__init__.pyi b/stubs/cachetools/cachetools/__init__.pyi deleted file mode 100644 index c6a9eaa95bc3..000000000000 --- a/stubs/cachetools/cachetools/__init__.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from .cache import Cache as Cache -from .decorators import cached as cached, cachedmethod as cachedmethod -from .lfu import LFUCache as LFUCache -from .lru import LRUCache as LRUCache -from .rr import RRCache as RRCache -from .ttl import TTLCache as TTLCache diff --git a/stubs/cachetools/cachetools/abc.pyi b/stubs/cachetools/cachetools/abc.pyi deleted file mode 100644 index a1f0fbbdb7e6..000000000000 --- a/stubs/cachetools/cachetools/abc.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from abc import ABCMeta -from typing import MutableMapping, TypeVar - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class DefaultMapping(MutableMapping[_KT, _VT], metaclass=ABCMeta): ... diff --git a/stubs/cachetools/cachetools/cache.pyi b/stubs/cachetools/cachetools/cache.pyi deleted file mode 100644 index ad5ff1473ff7..000000000000 --- a/stubs/cachetools/cachetools/cache.pyi +++ /dev/null @@ -1,20 +0,0 @@ -from typing import Callable, Generic, Iterator, TypeVar - -from .abc import DefaultMapping as DefaultMapping - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class Cache(DefaultMapping[_KT, _VT], Generic[_KT, _VT]): - def __init__(self, maxsize: float, getsizeof: Callable[[_VT], float] | None = ...) -> None: ... - def __getitem__(self, key: _KT) -> _VT: ... - def __setitem__(self, key: _KT, value: _VT) -> None: ... - def __delitem__(self, key: _KT) -> None: ... - def __iter__(self) -> Iterator[_KT]: ... - def __len__(self) -> int: ... - @property - def maxsize(self) -> float: ... - @property - def currsize(self) -> float: ... - @staticmethod - def getsizeof(value: _VT) -> float: ... diff --git a/stubs/cachetools/cachetools/decorators.pyi b/stubs/cachetools/cachetools/decorators.pyi deleted file mode 100644 index 426fc871d665..000000000000 --- a/stubs/cachetools/cachetools/decorators.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from _typeshed import IdentityFunction -from typing import Any, Callable, ContextManager, MutableMapping, TypeVar - -_KT = TypeVar("_KT") - -def cached( - cache: MutableMapping[_KT, Any] | None, key: Callable[..., _KT] = ..., lock: ContextManager[Any] | None = ... -) -> IdentityFunction: ... -def cachedmethod( - cache: Callable[[Any], MutableMapping[_KT, Any] | None], key: Callable[..., _KT] = ..., lock: ContextManager[Any] | None = ... -) -> IdentityFunction: ... diff --git a/stubs/cachetools/cachetools/func.pyi b/stubs/cachetools/cachetools/func.pyi deleted file mode 100644 index 75a532a00ba8..000000000000 --- a/stubs/cachetools/cachetools/func.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from _typeshed import IdentityFunction -from typing import Callable, Sequence, TypeVar - -_T = TypeVar("_T") - -def lfu_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ... -def lru_cache(maxsize: float = ..., typed: bool = ...) -> IdentityFunction: ... -def rr_cache(maxsize: float = ..., choice: Callable[[Sequence[_T]], _T] | None = ..., typed: bool = ...) -> IdentityFunction: ... -def ttl_cache(maxsize: float = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> IdentityFunction: ... diff --git a/stubs/cachetools/cachetools/keys.pyi b/stubs/cachetools/cachetools/keys.pyi deleted file mode 100644 index 9effbe6e171f..000000000000 --- a/stubs/cachetools/cachetools/keys.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from typing import Hashable, Tuple - -def hashkey(*args: Hashable, **kwargs: Hashable) -> Tuple[Hashable, ...]: ... -def typedkey(*args: Hashable, **kwargs: Hashable) -> Tuple[Hashable, ...]: ... diff --git a/stubs/cachetools/cachetools/lfu.pyi b/stubs/cachetools/cachetools/lfu.pyi deleted file mode 100644 index e63aeb313628..000000000000 --- a/stubs/cachetools/cachetools/lfu.pyi +++ /dev/null @@ -1,14 +0,0 @@ -from typing import Callable, Iterator, TypeVar - -from .cache import Cache - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class LFUCache(Cache[_KT, _VT]): - def __init__(self, maxsize: float, getsizeof: Callable[[_VT], float] | None = ...) -> None: ... - def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ... - def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ... - def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ... - def __iter__(self) -> Iterator[_KT]: ... - def __len__(self) -> int: ... diff --git a/stubs/cachetools/cachetools/lru.pyi b/stubs/cachetools/cachetools/lru.pyi deleted file mode 100644 index 128a91480aff..000000000000 --- a/stubs/cachetools/cachetools/lru.pyi +++ /dev/null @@ -1,13 +0,0 @@ -from typing import Callable, Iterator, TypeVar - -from .cache import Cache as Cache - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class LRUCache(Cache[_KT, _VT]): - def __init__(self, maxsize: float, getsizeof: Callable[[_VT], float] | None = ...) -> None: ... - def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ... - def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ... - def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ... - def __iter__(self) -> Iterator[_KT]: ... diff --git a/stubs/cachetools/cachetools/rr.pyi b/stubs/cachetools/cachetools/rr.pyi deleted file mode 100644 index aa4190d047c2..000000000000 --- a/stubs/cachetools/cachetools/rr.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from typing import Callable, Iterator, Sequence, TypeVar - -from .cache import Cache as Cache - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class RRCache(Cache[_KT, _VT]): - def __init__( - self, maxsize: float, choice: Callable[[Sequence[_KT]], _KT] | None = ..., getsizeof: Callable[[_VT], float] | None = ... - ) -> None: ... - def __getitem__(self, key: _KT) -> _VT: ... - def __setitem__(self, key: _KT, value: _VT) -> None: ... - def __delitem__(self, key: _KT) -> None: ... - def __iter__(self) -> Iterator[_KT]: ... - def __len__(self) -> int: ... - @property - def choice(self) -> Callable[[Sequence[_KT]], _KT]: ... diff --git a/stubs/cachetools/cachetools/ttl.pyi b/stubs/cachetools/cachetools/ttl.pyi deleted file mode 100644 index 12cd6072cdfb..000000000000 --- a/stubs/cachetools/cachetools/ttl.pyi +++ /dev/null @@ -1,23 +0,0 @@ -from typing import Callable, Iterator, TypeVar - -from .cache import Cache as Cache - -_KT = TypeVar("_KT") -_VT = TypeVar("_VT") - -class TTLCache(Cache[_KT, _VT]): - def __init__( - self, maxsize: float, ttl: float, timer: Callable[[], float] = ..., getsizeof: Callable[[_VT], float] | None = ... - ) -> None: ... - def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ... - def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ... - def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ... - def __iter__(self) -> Iterator[_KT]: ... - def __len__(self) -> int: ... - @property - def currsize(self) -> float: ... - @property - def timer(self) -> Callable[[], float]: ... - @property - def ttl(self) -> float: ... - def expire(self, time: float | None = ...) -> None: ... diff --git a/stubs/filelock/METADATA.toml b/stubs/filelock/METADATA.toml index 5f1541084942..ffc5a1c5e98b 100644 --- a/stubs/filelock/METADATA.toml +++ b/stubs/filelock/METADATA.toml @@ -1 +1 @@ -version = "0.1" +version = "3.2" diff --git a/stubs/filelock/filelock/__init__.pyi b/stubs/filelock/filelock/__init__.pyi index 6b65fa78e039..e10860f893ee 100644 --- a/stubs/filelock/filelock/__init__.pyi +++ b/stubs/filelock/filelock/__init__.pyi @@ -1,10 +1,7 @@ import sys -from logging import Logger from types import TracebackType from typing import Type -def logger() -> Logger: ... - class Timeout(TimeoutError): def __init__(self, lock_file: str) -> None: ... def __str__(self) -> str: ... diff --git a/stubs/pyOpenSSL/@tests/stubtest_allowlist.txt b/stubs/pyOpenSSL/@tests/stubtest_allowlist.txt index ece49480dc00..ade54ad26213 100644 --- a/stubs/pyOpenSSL/@tests/stubtest_allowlist.txt +++ b/stubs/pyOpenSSL/@tests/stubtest_allowlist.txt @@ -1,2 +1 @@ -OpenSSL.crypto OpenSSL.SSL.Context.__getattr__