From: Denis Laxalde Date: Thu, 8 Jun 2023 12:03:18 +0000 (+0200) Subject: docs: adjust PrepareManager.validate() docstring X-Git-Tag: 3.1.10~16^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ccaee602be13d1bb2e96ee480e74f5c9f5a0fa;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