Skip to content

Commit e31cb83

Browse files
authored
Merge branch 'master' into issue/3139
2 parents 0b67b59 + 9a70f62 commit e31cb83

File tree

11 files changed

+27
-48
lines changed

11 files changed

+27
-48
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* Fixed sentinel execute command response
2+
* Update `ResponseT` type hint
23
* Allow to control the minimum SSL version
34
* Add an optional lock_name attribute to LockError.
45
* Fix return types for `get`, `set_path` and `strappend` in JSONCommands

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@ The Python interface to the Redis key-value store.
1919

2020
## How do I Redis?
2121

22-
[Learn for free at Redis University](https://university.redis.com/)
22+
[Learn for free at Redis University](https://redis.io/university/)
2323

24-
[Build faster with the Redis Launchpad](https://launchpad.redis.com/)
24+
[Try the Redis Cloud](https://redis.io/try-free/)
2525

26-
[Try the Redis Cloud](https://redis.com/try-free/)
26+
[Dive in developer tutorials](https://redis.io/learn)
2727

28-
[Dive in developer tutorials](https://developer.redis.com/)
28+
[Join the Redis community](https://redis.io/community/)
2929

30-
[Join the Redis community](https://redis.com/community/)
31-
32-
[Work at Redis](https://redis.com/company/careers/jobs/)
30+
[Work at Redis](https://redis.io/careers/)
3331

3432
## Installation
3533

@@ -159,7 +157,7 @@ The following example shows how to utilize [Redis Pub/Sub](https://redis.io/docs
159157

160158
### Author
161159

162-
redis-py is developed and maintained by [Redis Inc](https://redis.com). It can be found [here](
160+
redis-py is developed and maintained by [Redis Inc](https://redis.io). It can be found [here](
163161
https://github.com/redis/redis-py), or downloaded from [pypi](https://pypi.org/project/redis/).
164162

165163
Special thanks to:
@@ -171,4 +169,4 @@ Special thanks to:
171169
system.
172170
- Paul Hubbard for initial packaging support.
173171

174-
[![Redis](./docs/logo-redis.png)](https://www.redis.com)
172+
[![Redis](./docs/_static/logo-redis.svg)](https://redis.io)

docs/_static/logo-redis.svg

Lines changed: 10 additions & 0 deletions
Loading

docs/_static/redis-cube-red-white-rgb.svg

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158

159159
# The name of an image file (relative to this directory) to place at the top
160160
# of the sidebar.
161-
html_logo = "_static/redis-cube-red-white-rgb.svg"
161+
html_logo = "_static/logo-redis.svg"
162162

163163
# The name of an image file (within the static path) to use as favicon of the
164164
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

docs/logo-redis.png

-8.19 KB
Binary file not shown.

redis/asyncio/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __init__(
275275
ssl_min_version: Optional[ssl.TLSVersion] = None,
276276
ssl_ciphers: Optional[str] = None,
277277
protocol: Optional[int] = 2,
278-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
278+
address_remap: Optional[Callable[[Tuple[str, int]], Tuple[str, int]]] = None,
279279
cache_enabled: bool = False,
280280
client_cache: Optional[AbstractCache] = None,
281281
cache_max_size: int = 100,
@@ -1152,7 +1152,7 @@ def __init__(
11521152
startup_nodes: List["ClusterNode"],
11531153
require_full_coverage: bool,
11541154
connection_kwargs: Dict[str, Any],
1155-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
1155+
address_remap: Optional[Callable[[Tuple[str, int]], Tuple[str, int]]] = None,
11561156
) -> None:
11571157
self.startup_nodes = {node.name: node for node in startup_nodes}
11581158
self.require_full_coverage = require_full_coverage

redis/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def __init__(
506506
read_from_replicas: bool = False,
507507
dynamic_startup_nodes: bool = True,
508508
url: Optional[str] = None,
509-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
509+
address_remap: Optional[Callable[[Tuple[str, int]], Tuple[str, int]]] = None,
510510
**kwargs,
511511
):
512512
"""
@@ -1347,7 +1347,7 @@ def __init__(
13471347
lock=None,
13481348
dynamic_startup_nodes=True,
13491349
connection_pool_class=ConnectionPool,
1350-
address_remap: Optional[Callable[[str, int], Tuple[str, int]]] = None,
1350+
address_remap: Optional[Callable[[Tuple[str, int]], Tuple[str, int]]] = None,
13511351
**kwargs,
13521352
):
13531353
self.nodes_cache = {}

redis/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5269,7 +5269,7 @@ def pubsub_shardnumsub(self, *args: ChannelT, **kwargs) -> ResponseT:
52695269
class ScriptCommands(CommandsProtocol):
52705270
"""
52715271
Redis Lua script commands. see:
5272-
https://redis.com/ebook/part-3-next-steps/chapter-11-scripting-redis-with-lua/
5272+
https://redis.io/ebook/part-3-next-steps/chapter-11-scripting-redis-with-lua/
52735273
"""
52745274

52755275
def _eval(

redis/commands/timeseries/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class TSInfo:
66
"""
77
Hold information and statistics on the time-series.
88
Can be created using ``tsinfo`` command
9-
https://oss.redis.com/redistimeseries/commands/#tsinfo.
9+
https://redis.io/docs/latest/commands/ts.info/
1010
"""
1111

1212
rules = []
@@ -57,7 +57,7 @@ def __init__(self, args):
5757
Policy that will define handling of duplicate samples.
5858
5959
Can read more about on
60-
https://oss.redis.com/redistimeseries/configuration/#duplicate_policy
60+
https://redis.io/docs/latest/develop/data-types/timeseries/configuration/#duplicate_policy
6161
"""
6262
response = dict(zip(map(nativestr, args[::2]), args[1::2]))
6363
self.rules = response.get("rules")

redis/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
PatternT = _StringLikeT # Patterns matched against keys, fields etc
3333
FieldT = EncodableT # Fields within hash tables, streams and geo commands
3434
KeysT = Union[KeyT, Iterable[KeyT]]
35-
ResponseT = Union[Awaitable, Any]
35+
ResponseT = Union[Awaitable[Any], Any]
3636
ChannelT = _StringLikeT
3737
GroupT = _StringLikeT # Consumer group
3838
ConsumerT = _StringLikeT # Consumer name

0 commit comments

Comments
 (0)