Skip to content

Commit

Permalink
Python: Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Apr 1, 2024
1 parent 70c0355 commit 8f91933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#### Changes
* Python: Added JSON.DEL JSON.FORGET commands ([#1146](https://github.com/aws/glide-for-redis/pull/1146))

#### Fixes
* Python: Fix typing error "‘type’ object is not subscriptable" ([#1203](https://github.com/aws/glide-for-redis/pull/1203))

## 0.3.1 (2024-03-28)

#### Fixes
Expand Down
4 changes: 2 additions & 2 deletions python/python/glide/redis_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import asyncio
import threading
from typing import List, Optional, Tuple, Union, cast
from typing import List, Optional, Tuple, Type, Union, cast

import async_timeout
from glide.async_commands.cluster_commands import ClusterCommands
Expand Down Expand Up @@ -35,7 +35,7 @@

def get_request_error_class(
error_type: Optional[RequestErrorType.ValueType],
) -> type[RequestError]:
) -> Type[RequestError]:
if error_type == RequestErrorType.Disconnect:
return ConnectionError
if error_type == RequestErrorType.ExecAbort:
Expand Down

0 comments on commit 8f91933

Please sign in to comment.