From: Denis Laxalde Date: Thu, 8 Jun 2023 12:03:18 +0000 (+0200) Subject: docs: adjust PrepareManager.validate() docstring X-Git-Tag: pool-3.2.0~94^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f26b05873f83536d947bc2e952950ed1ccde066a;p=thirdparty%2Fpsycopg.git docs: adjust PrepareManager.validate() docstring From commit bfabe88aba4769e0a44206e1ace7c299991a957d, the method does not return a command, but it records it through _rotate(). --- diff --git a/psycopg/psycopg/_preparing.py b/psycopg/psycopg/_preparing.py index 6b08f6bbc..158552ba5 100644 --- a/psycopg/psycopg/_preparing.py +++ b/psycopg/psycopg/_preparing.py @@ -160,7 +160,7 @@ class PrepareManager: ) -> None: """Validate cached entry with 'key' by checking query 'results'. - Possibly return a command to perform maintenance on database side. + Possibly record a command to perform maintenance on database side. """ if self._should_discard(prep, results): return