From: Daniele Varrazzo Date: Tue, 26 Aug 2025 02:00:48 +0000 (+0200) Subject: fix: fix typo require version X and greater -> or greater X-Git-Tag: 3.3.0.dev1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae8467169badeeba0eab18538b7fde56b833d3af;p=thirdparty%2Fpsycopg.git fix: fix typo require version X and greater -> or greater --- diff --git a/psycopg/psycopg/_capabilities.py b/psycopg/psycopg/_capabilities.py index 323141efc..b5427cb4a 100644 --- a/psycopg/psycopg/_capabilities.py +++ b/psycopg/psycopg/_capabilities.py @@ -21,35 +21,35 @@ class Capabilities: def has_encrypt_password(self, check: bool = False) -> bool: """Check if the `PGconn.encrypt_password()` method is implemented. - The feature requires libpq 10.0 and greater. + The feature requires libpq 10.0 or greater. """ return self._has_feature("pq.PGconn.encrypt_password()", 100000, check=check) def has_hostaddr(self, check: bool = False) -> bool: """Check if the `ConnectionInfo.hostaddr` attribute is implemented. - The feature requires libpq 12.0 and greater. + The feature requires libpq 12.0 or greater. """ return self._has_feature("Connection.info.hostaddr", 120000, check=check) def has_pipeline(self, check: bool = False) -> bool: """Check if the :ref:`pipeline mode ` is supported. - The feature requires libpq 14.0 and greater. + The feature requires libpq 14.0 or greater. """ return self._has_feature("Connection.pipeline()", 140000, check=check) def has_set_trace_flags(self, check: bool = False) -> bool: """Check if the `pq.PGconn.set_trace_flags()` method is implemented. - The feature requires libpq 14.0 and greater. + The feature requires libpq 14.0 or greater. """ return self._has_feature("PGconn.set_trace_flags()", 140000, check=check) def has_cancel_safe(self, check: bool = False) -> bool: """Check if the `Connection.cancel_safe()` method is implemented. - The feature requires libpq 17.0 and greater. + The feature requires libpq 17.0 or greater. """ return self._has_feature("Connection.cancel_safe()", 170000, check=check) @@ -57,7 +57,7 @@ class Capabilities: """Check if `Cursor.stream()` can handle a `size` parameter value greater than 1 to retrieve results by chunks. - The feature requires libpq 17.0 and greater. + The feature requires libpq 17.0 or greater. """ return self._has_feature( "Cursor.stream() with 'size' parameter greater than 1", 170000, check=check @@ -66,7 +66,7 @@ class Capabilities: def has_send_close_prepared(self, check: bool = False) -> bool: """Check if the `pq.PGconn.send_closed_prepared()` method is implemented. - The feature requires libpq 17.0 and greater. + The feature requires libpq 17.0 or greater. """ return self._has_feature("PGconn.send_close_prepared()", 170000, check=check)