|
| 1 | +--- a/redis/commands/json/commands.py |
| 2 | ++++ b/redis/commands/json/commands.py |
| 3 | +@@ -2,8 +2,6 @@ |
| 4 | + from json import JSONDecodeError, loads |
| 5 | + from typing import Dict, List, Optional, Union |
| 6 | + |
| 7 | +-from deprecated import deprecated |
| 8 | +- |
| 9 | + from redis.exceptions import DataError |
| 10 | + |
| 11 | + from ._util import JsonType |
| 12 | +@@ -137,17 +135,6 @@ |
| 13 | + "JSON.NUMINCRBY", name, str(path), self._encode(number) |
| 14 | + ) |
| 15 | + |
| 16 | +- @deprecated(version="4.0.0", reason="deprecated since redisjson 1.0.0") |
| 17 | +- def nummultby(self, name: str, path: str, number: int) -> str: |
| 18 | +- """Multiply the numeric (integer or floating point) JSON value under |
| 19 | +- ``path`` at key ``name`` with the provided ``number``. |
| 20 | +- |
| 21 | +- For more information see `JSON.NUMMULTBY <https://redis.io/commands/json.nummultby>`_. |
| 22 | +- """ # noqa |
| 23 | +- return self.execute_command( |
| 24 | +- "JSON.NUMMULTBY", name, str(path), self._encode(number) |
| 25 | +- ) |
| 26 | +- |
| 27 | + def clear(self, name: str, path: Optional[str] = Path.root_path()) -> int: |
| 28 | + """Empty arrays and objects (to have zero slots/keys without deleting the |
| 29 | + array/object). |
| 30 | +@@ -367,21 +354,3 @@ |
| 31 | + pieces.append(key) |
| 32 | + pieces.append(str(path)) |
| 33 | + return self.execute_command("JSON.DEBUG", *pieces) |
| 34 | +- |
| 35 | +- @deprecated( |
| 36 | +- version="4.0.0", reason="redisjson-py supported this, call get directly." |
| 37 | +- ) |
| 38 | +- def jsonget(self, *args, **kwargs): |
| 39 | +- return self.get(*args, **kwargs) |
| 40 | +- |
| 41 | +- @deprecated( |
| 42 | +- version="4.0.0", reason="redisjson-py supported this, call get directly." |
| 43 | +- ) |
| 44 | +- def jsonmget(self, *args, **kwargs): |
| 45 | +- return self.mget(*args, **kwargs) |
| 46 | +- |
| 47 | +- @deprecated( |
| 48 | +- version="4.0.0", reason="redisjson-py supported this, call get directly." |
| 49 | +- ) |
| 50 | +- def jsonset(self, *args, **kwargs): |
| 51 | +- return self.set(*args, **kwargs) |
| 52 | +--- a/setup.py |
| 53 | ++++ b/setup.py |
| 54 | +@@ -32,7 +32,6 @@ |
| 55 | + |
| 56 | + python_requires=">=3.6", |
| 57 | + install_requires=[ |
| 58 | +- "deprecated>=1.2.3", |
| 59 | + "packaging>=20.4", |
| 60 | + 'importlib-metadata >= 1.0; python_version < "3.8"', |
| 61 | + 'typing-extensions; python_version<"3.8"', |
0 commit comments