From 94ccaee602be13d1bb2e96ee480e74f5c9f5a0fa Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 8 Jun 2023 14:03:18 +0200 Subject: [PATCH] docs: adjust PrepareManager.validate() docstring From commit bfabe88aba4769e0a44206e1ace7c299991a957d, the method does not return a command, but it records it through _rotate(). --- psycopg/psycopg/_preparing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2