From 30be3a35b18c0041e96e6a1b17fa6b323253d2b2 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Sun, 6 Feb 2022 14:24:07 +0200 Subject: Add type hints for JSON commands (#1921) * add type hints for json commands * Change json.clear test multi to be up to date with redisjson (#1922) * fix json clear test * fix json clear test * Add support for BZMPOP (#1851) * add bzmpop * add comment * fix pr comment * fix linters * fix pr comments * add client no-evict (#1856) * Add support for ZINTERCARD (#1857) * add zintercard * fix pr comment * linters * Add support for EVAL_RO (#1862) * add sort_ro * mark test as onlynon cluster * delete mark test as onlynoncluster * add eval_ro * fix linters * delete sort_ro * fix pr comment * add type hints * add type hints * linters * Add support for EVALSHA_RO (#1863) * add evalsha-ro * fix pr comment * add type hints * add type hints * Fix naming conventions (#1872) * fix naming convention * fix worng changes * fix naming convention in rootPath --- redis/commands/json/_util.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 redis/commands/json/_util.py (limited to 'redis/commands/json/_util.py') diff --git a/redis/commands/json/_util.py b/redis/commands/json/_util.py new file mode 100644 index 0000000..3400bcd --- /dev/null +++ b/redis/commands/json/_util.py @@ -0,0 +1,3 @@ +from typing import Any, Dict, List, Union + +JsonType = Union[str, int, float, bool, None, Dict[str, Any], List[Any]] -- cgit v1.2.1