-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Allow creation of RESP3 connections. #669
Conversation
3d4d093
to
8e98ea1
Compare
@barshaul I added another commit, with test fixes that were required by the changes to redis-rs. |
12e182d
to
98c6a59
Compare
python/python/pybushka/constants.py
Outdated
@@ -9,7 +9,7 @@ | |||
# Typing | |||
T = TypeVar("T") | |||
TOK = Literal["OK"] | |||
TResult = Union[TOK, str, List[str], List[List[str]], int, None] | |||
TResult = Union[TOK, str, List[str], List[List[str]], int, None, dict[str, str]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change dict to Dict (import from Typing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be Dict[str, T], as we can get different response types
98c6a59
to
6728482
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only need to change to Dict[str, T]
These tests were broken by clusters returning maps instead of arrays.
6728482
to
fc74f22
Compare
depends on amazon-contributing/redis-rs#74.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.