summaryrefslogtreecommitdiff
path: root/redis/commands/bf/utils.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-08-02 15:56:49 +0300
committerGitHub <noreply@github.com>2022-08-02 15:56:49 +0300
commit9901c7963ff5c5f68ff7e651142c51c2d715c5eb (patch)
tree999f2006c1d37e1c74d82b27ab2929dc083b3a2f /redis/commands/bf/utils.py
parent4ed8aba8441ae841e2c8e698b84ebda1da8208f9 (diff)
downloadredis-py-9901c7963ff5c5f68ff7e651142c51c2d715c5eb.tar.gz
Add support for `TDIGEST.QUANTILE` extensions (#2317)
* Add support for TDIGEST.QUANTILE extensions * linters * linters & utils * Update test_bloom.py
Diffstat (limited to 'redis/commands/bf/utils.py')
-rw-r--r--redis/commands/bf/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/redis/commands/bf/utils.py b/redis/commands/bf/utils.py
new file mode 100644
index 0000000..21dcfa7
--- /dev/null
+++ b/redis/commands/bf/utils.py
@@ -0,0 +1,3 @@
+def parse_tdigest_quantile(response):
+ """Parse TDIGEST.QUANTILE response."""
+ return [float(x) for x in response]