Behaviour of transaction() does not match redis-py
okey opened this issue · comments
Oscar commented
Here is redis-py's transaction()
As you can see, it takes keyword arguments: def transaction(self, func, *watches, **kwargs)
fakeredis' transaction()
does not expect keyword arguments: def transaction(self, func, *keys)
Naturally this results in a TypeError
when trying to use keyword arguments.
The three current kwargs are shard_hint=None
, value_from_callable=False
, and watch_delay=None
. The fakeredis implementation, however, does not support any of these.