From 7144118995c7df23808646304ccdfd955f49ef96 Mon Sep 17 00:00:00 2001 From: JHeilCoveo <52839010+JHeilCoveo@users.noreply.github.com> Date: Fri, 20 Aug 2021 09:59:15 +0200 Subject: [PATCH] Add keys module to cachetools package (#5938) --- stubs/cachetools/METADATA.toml | 3 +-- stubs/cachetools/cachetools/keys.pyi | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 stubs/cachetools/cachetools/keys.pyi diff --git a/stubs/cachetools/METADATA.toml b/stubs/cachetools/METADATA.toml index 31f638bf3..de720977e 100644 --- a/stubs/cachetools/METADATA.toml +++ b/stubs/cachetools/METADATA.toml @@ -1,2 +1 @@ -version = "0.1" -python2 = true +version = "4.2" diff --git a/stubs/cachetools/cachetools/keys.pyi b/stubs/cachetools/cachetools/keys.pyi new file mode 100644 index 000000000..9effbe6e1 --- /dev/null +++ b/stubs/cachetools/cachetools/keys.pyi @@ -0,0 +1,4 @@ +from typing import Hashable, Tuple + +def hashkey(*args: Hashable, **kwargs: Hashable) -> Tuple[Hashable, ...]: ... +def typedkey(*args: Hashable, **kwargs: Hashable) -> Tuple[Hashable, ...]: ...