]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix: fix typo require version X and greater -> or greater
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Aug 2025 02:00:48 +0000 (04:00 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 26 Aug 2025 02:00:48 +0000 (04:00 +0200)
psycopg/psycopg/_capabilities.py

index 323141efc62519b36b699ada8aaddbb6a97c48d5..b5427cb4a3304ab9ae82caff1e1ffafa54776a2d 100644 (file)
@@ -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 <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)