Skip to content

Commit eca6a48

Browse files
committed
Docs: Resolve 'Unexpected unindent' warnings
1 parent e4ffd18 commit eca6a48

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

redis/asyncio/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,12 @@ async def aclose(self, close_connection_pool: Optional[bool] = None) -> None:
579579
"""
580580
Closes Redis client connection
581581
582-
:param close_connection_pool: decides whether to close the connection pool used
583-
by this Redis client, overriding Redis.auto_close_connection_pool. By default,
584-
let Redis.auto_close_connection_pool decide whether to close the connection
585-
pool.
582+
Args:
583+
close_connection_pool:
584+
decides whether to close the connection pool used by this Redis client,
585+
overriding Redis.auto_close_connection_pool.
586+
By default, let Redis.auto_close_connection_pool decide
587+
whether to close the connection pool.
586588
"""
587589
conn = self.connection
588590
if conn:

redis/commands/core.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -731,16 +731,19 @@ def client_pause(self, timeout: int, all: bool = True, **kwargs) -> ResponseT:
731731
732732
For more information see https://redis.io/commands/client-pause
733733
734-
:param timeout: milliseconds to pause clients
735-
:param all: If true (default) all client commands are blocked.
736-
otherwise, clients are only blocked if they attempt to execute
737-
a write command.
734+
Args:
735+
timeout: milliseconds to pause clients
736+
all: If true (default) all client commands are blocked.
737+
otherwise, clients are only blocked if they attempt to execute
738+
a write command.
739+
738740
For the WRITE mode, some commands have special behavior:
739-
EVAL/EVALSHA: Will block client for all scripts.
740-
PUBLISH: Will block client.
741-
PFCOUNT: Will block client.
742-
WAIT: Acknowledgments will be delayed, so this command will
743-
appear blocked.
741+
742+
* EVAL/EVALSHA: Will block client for all scripts.
743+
* PUBLISH: Will block client.
744+
* PFCOUNT: Will block client.
745+
* WAIT: Acknowledgments will be delayed, so this command will
746+
appear blocked.
744747
"""
745748
args = ["CLIENT PAUSE", str(timeout)]
746749
if not isinstance(timeout, int):

0 commit comments

Comments
 (0)