Skip to content
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

fix(redis): commands from asyncio module must be async #7820

Merged
merged 2 commits into from
May 19, 2022

Conversation

sileht
Copy link
Contributor

@sileht sileht commented May 10, 2022

redis-py has introduced an asyncio module since 4.2 and almost all
commands should be async if the redis.asyncio.Redis is used instead of
redis.Redis.

This changes adds the types for all core commands.

Related to #7597

redis-py has introduced an asyncio module since 4.2 and almost all
commands should be async if the redis.asyncio.Redis is used instead of
redis.Redis.

This changes adds the types for all core commands.

Related to python#7597
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@sileht
Copy link
Contributor Author

sileht commented May 10, 2022

Thx @AlexWaygood for the CI fix.

sileht added a commit to sileht/mergify-community that referenced this pull request May 10, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 10, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 10, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 10, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 11, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
@JelleZijlstra JelleZijlstra merged commit f6c1383 into python:master May 19, 2022
sileht added a commit to sileht/mergify-community that referenced this pull request May 23, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 23, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
sileht added a commit to sileht/mergify-community that referenced this pull request May 30, 2022
We have to vendor redis-py typing because types-redis has an incomplete
redis.asyncio module typing.

I proposed my typing here: python/typeshed#7820

The change also makes mypy discovers some un-catched typing issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants