Skip to content

Commit

Permalink
Docs: align the param spec of sqlite3.Connection methods with the imp…
Browse files Browse the repository at this point in the history
…lementation (python#108285)

- no parameters of create_aggregate() are positional-only
- all parameters of create_collation() are positional-only
  • Loading branch information
erlend-aasland authored Aug 22, 2023
1 parent d7202e4 commit 893215a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ Connection objects
('acbd18db4cc2f85cedef654fccc4a4d8',)


.. method:: create_aggregate(name, /, n_arg, aggregate_class)
.. method:: create_aggregate(name, n_arg, aggregate_class)

Create or remove a user-defined SQL aggregate function.

Expand Down Expand Up @@ -904,7 +904,7 @@ Connection objects

[('a', 9), ('b', 12), ('c', 16), ('d', 12), ('e', 9)]

.. method:: create_collation(name, callable)
.. method:: create_collation(name, callable, /)

Create a collation named *name* using the collating function *callable*.
*callable* is passed two :class:`string <str>` arguments,
Expand Down

0 comments on commit 893215a

Please sign in to comment.