summaryrefslogtreecommitdiff
path: root/redis/typing.py
diff options
context:
space:
mode:
authorAnas <anas.el.amraoui@live.com>2022-06-01 14:59:02 +0300
committerGitHub <noreply@github.com>2022-06-01 14:59:02 +0300
commitfa0be7671de6be85f859cbb57a31531b2482c9e1 (patch)
tree5470f36a4094e413f88480da35a3980ba73999bf /redis/typing.py
parent05fc203f68c24fbd54c7b338b4610fa62972c326 (diff)
downloadredis-py-fa0be7671de6be85f859cbb57a31531b2482c9e1.tar.gz
Made sync lock consistent and added types to it (#2137)
* Made sync lock consistent and added types to it * Made linters happy * Fixed cluster client lock signature Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
Diffstat (limited to 'redis/typing.py')
-rw-r--r--redis/typing.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/redis/typing.py b/redis/typing.py
index 6748612..b572b0c 100644
--- a/redis/typing.py
+++ b/redis/typing.py
@@ -11,6 +11,7 @@ if TYPE_CHECKING:
from redis.connection import ConnectionPool, Encoder
+Number = Union[int, float]
EncodedT = Union[bytes, memoryview]
DecodedT = Union[str, int, float]
EncodableT = Union[EncodedT, DecodedT]