-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
added explicit typing to all async pipeline commands #8325
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cda4f2d
added explicit typing to all async pipeline commands
bentheiii d3f66fe
added blank line
bentheiii 78f4d2f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] bee478c
restored redis inheritance
bentheiii 40ca3e0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 35d4c69
fix
bentheiii 63c3319
fixed the allowlist
bentheiii 2a698a1
another fix
bentheiii 0886d79
optionals are now incomplete
bentheiii a03eeb8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 307bce3
fix allowlist
bentheiii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
These allowlist entries are all because the methods in question are
async def
methods at runtime but notasync def
methods in the stub.async def
in the stub?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.
Hi @AlexWaygood
I'm sure in the sense that it doesn't really matter, in principle this function should be syncronous in the pipeline, just like all other redis commands. In practice, because the functions are defined as
async
in the superclass unlike most commands (I can't really tell why), then any attempt to use these commands in a pipeline would result in a bug.I will place these entreis in their own section