Removing synchronous context manager handling from async RedisCluster. by petyaslavova · Pull Request #3679 · redis/redis-py (original) (raw)

Pull Request check-list

Please make sure to review and check all of these items:

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Removing support for using AsyncRedisCluster as a synchronous context manager. This class is designed primarily for asynchronous usage, and the majority of its methods are async. Allowing it to be used in a synchronous context is misleading and could result in incorrect or unintended behavior.