Skip to content

Commit 961aab5

Browse files
committed
Python: Fix typing
1 parent 961a1bb commit 961aab5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#### Changes
22
* Python: Added JSON.DEL JSON.FORGET commands ([#1146](https://github.com/aws/glide-for-redis/pull/1146))
33

4+
#### Fixes
5+
* Python: Fix typing error "‘type’ object is not subscriptable" ([#1203](https://github.com/aws/glide-for-redis/pull/1203))
6+
47
## 0.3.1 (2024-03-28)
58

69
#### Fixes

python/python/glide/redis_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import asyncio
44
import threading
5-
from typing import List, Optional, Tuple, Union, cast
5+
from typing import List, Optional, Tuple, Type, Union, cast
66

77
import async_timeout
88
from glide.async_commands.cluster_commands import ClusterCommands
@@ -35,7 +35,7 @@
3535

3636
def get_request_error_class(
3737
error_type: Optional[RequestErrorType.ValueType],
38-
) -> type[RequestError]:
38+
) -> Type[RequestError]:
3939
if error_type == RequestErrorType.Disconnect:
4040
return ConnectionError
4141
if error_type == RequestErrorType.ExecAbort:

0 commit comments

Comments
 (0)