]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Proofread row factories doc
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 30 Apr 2021 13:26:21 +0000 (15:26 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 30 Apr 2021 13:32:05 +0000 (15:32 +0200)
docs/advanced/rows.rst
psycopg3/psycopg3/rows.py

index 60d95a771e1b1cdb2c0400830cbf3059397931c1..f75dc2024cc741b1180815338d836a5ac6183913 100644 (file)
@@ -13,8 +13,8 @@ factories*.
 
 A row factory (formally implemented by the `~psycopg3.rows.RowFactory`
 protocol) is a callable that accepts a `Cursor` object and returns another
-callable (formally the `~psycopg3.rows.RowMaker`) accepting a `values` tuple
-and returning a row in the desired form.
+callable (formally the `~psycopg3.rows.RowMaker` protocol) accepting a
+`values` tuple and returning a row in the desired form.
 
 .. autoclass:: psycopg3.rows.RowMaker
 
index b9f977a5c15935b82166148924a64937768c177b..f295e008549e2f6f841ddd11924c728742fef5c6 100644 (file)
@@ -27,8 +27,8 @@ class RowMaker(Protocol[Row_co]):
     Callable protocol taking a sequence of value and returning an object.
 
     The sequence of value is what is returned from a database query, already
-    adapted to the right Python types. Tye return value is the object that your
-    program would like to receive: By defaut (`tuple_row()`) it is a simple
+    adapted to the right Python types. The return value is the object that your
+    program would like to receive: by default (`tuple_row()`) it is a simple
     tuple, but it may be any type of object.
 
     Typically, `~RowMaker` functions are returned by `RowFactory`.