Skip to content

Commit a98ce19

Browse files
committed
Fix a couple small doc errors
1 parent 9a6cb6b commit a98ce19

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

postgres.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def one(self, sql, parameters=None, strict=None):
292292
:type parameters: dict or tuple
293293
:param strict: whether to raise when there isn't exactly one result
294294
:type strict: :py:class:`bool`
295-
:returns: :py:class:`dict` or :py:const:`None`
295+
:returns: a single row or :py:const:`None`
296296
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`
297297
298298
By default, :py:attr:`strict` ends up evaluating to :py:class:`True`,
@@ -334,7 +334,7 @@ def rows(self, sql, parameters=None):
334334
:param unicode sql: the SQL statement to execute
335335
:param parameters: the bind parameters for the SQL statement
336336
:type parameters: dict or tuple
337-
:returns: :py:class:`list` of :py:class:`dict`
337+
:returns: :py:class:`list` of rows
338338
339339
>>> for row in db.rows("SELECT bar FROM foo"):
340340
... print(row["bar"])
@@ -351,9 +351,9 @@ def get_cursor(self, *a, **kw):
351351
"""Return a :py:class:`~postgres.CursorContextManager` that uses our
352352
connection pool.
353353
354-
This is what :py:meth:`~postgres.Postgres.execute`,
355-
:py:meth:`~postgres.Postgres.fetchone`, and
356-
:py:meth:`~postgres.Postgres.fetchall` use under the hood. You might
354+
This is what :py:meth:`~postgres.Postgres.run`,
355+
:py:meth:`~postgres.Postgres.one`, and
356+
:py:meth:`~postgres.Postgres.rows` use under the hood. You might
357357
use it if you want to access `cursor attributes
358358
<http://initd.org/psycopg/docs/cursor.html>`_, for example.
359359

0 commit comments

Comments
 (0)