Skip to content

Commit b1e5b01

Browse files
authored
Improve JsonType type definition (#3667)
1 parent 8325ce2 commit b1e5b01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

redis/commands/json/_util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
from typing import Any, Dict, List, Union
1+
from typing import List, Mapping, Union
22

3-
JsonType = Union[str, int, float, bool, None, Dict[str, Any], List[Any]]
3+
JsonType = Union[
4+
str, int, float, bool, None, Mapping[str, "JsonType"], List["JsonType"]
5+
]

0 commit comments

Comments
 (0)