diff --git a/redis/client.py b/redis/client.py index ea7f3d84de..28e9a82f76 100755 --- a/redis/client.py +++ b/redis/client.py @@ -450,7 +450,7 @@ def pipeline(self, transaction=True, shard_hint=None) -> "Pipeline": def transaction( self, func: Callable[["Pipeline"], None], *watches, **kwargs - ) -> None: + ) -> Union[List[Any], Any, None]: """ Convenience method for executing the callable `func` as a transaction while watching all keys specified in `watches`. The 'func' callable