def disconnect(self):
        "Disconnects all connections in the pool."
        self._checkpid()
        for connection in self._connections:
            connection.disconnect()
Disconnects all connections in the pool.
stackoverflow/venv/lib/python3.6/site-packages/redis/connection.py