From: Daniele Varrazzo Date: Sun, 2 Jan 2022 20:02:26 +0000 (+0100) Subject: Drop unneeded method signatures in docs X-Git-Tag: pool-3.1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=229ed109804e92652b50c3f60785a17fd5969377;p=thirdparty%2Fpsycopg.git Drop unneeded method signatures in docs --- diff --git a/docs/api/cursors.rst b/docs/api/cursors.rst index 1221317b7..46cb39be8 100644 --- a/docs/api/cursors.rst +++ b/docs/api/cursors.rst @@ -75,7 +75,7 @@ The `!Cursor` class See :ref:`query-parameters` for all the details about executing queries. - .. automethod:: executemany(query: Query, params_seq: Sequence[Args]) + .. automethod:: executemany :param query: The query to execute :type query: `!str`, `!bytes`, or `sql.Composable` @@ -89,7 +89,7 @@ The `!Cursor` class See :ref:`query-parameters` for all the details about executing queries. - .. automethod:: copy(statement: Query) -> Copy + .. automethod:: copy :param statement: The copy operation to execute :type statement: `!str`, `!bytes`, or `sql.Composable` @@ -103,7 +103,7 @@ The `!Cursor` class See :ref:`copy` for information about :sql:`COPY`. - .. automethod:: stream(query, params=None) -> Iterable[Sequence[Any]] + .. automethod:: stream This command is similar to execute + iter; however it supports endless data streams. The feature is not available in PostgreSQL, but some @@ -285,8 +285,7 @@ The `!ServerCursor` class Using `!execute()` more than once will close the previous cursor and open a new one with the same name. - .. automethod:: executemany(query: Query, params_seq: Sequence[Args]) - + .. automethod:: executemany .. automethod:: fetchone .. automethod:: fetchmany .. automethod:: fetchall @@ -364,7 +363,7 @@ The `!AsyncCursor` class async with cursor.copy() as copy: ... - .. automethod:: stream(query, params=None) -> AsyncIterable[Sequence[Any]] + .. automethod:: stream .. note::