From: Denis Laxalde Date: Fri, 30 Apr 2021 13:26:21 +0000 (+0200) Subject: Proofread row factories doc X-Git-Tag: 3.0.dev0~63^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f3fad221d5135a8a2d3aa64d306a4b5d1d0ff6;p=thirdparty%2Fpsycopg.git Proofread row factories doc --- diff --git a/docs/advanced/rows.rst b/docs/advanced/rows.rst index 60d95a771..f75dc2024 100644 --- a/docs/advanced/rows.rst +++ b/docs/advanced/rows.rst @@ -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 diff --git a/psycopg3/psycopg3/rows.py b/psycopg3/psycopg3/rows.py index b9f977a5c..f295e0085 100644 --- a/psycopg3/psycopg3/rows.py +++ b/psycopg3/psycopg3/rows.py @@ -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`.