Skip to content

Commit

Permalink
[3.11] Docs: align the param spec of sqlite3.Connection methods with …
Browse files Browse the repository at this point in the history
…the implementation (pythonGH-108285) (python#108288)

- no parameters of create_aggregate() are positional-only
- all parameters of create_collation() are positional-only
(cherry picked from commit 893215a)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
  • Loading branch information
miss-islington and erlend-aasland authored Aug 22, 2023
1 parent 9d00379 commit d22ac0c
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 @@ -679,7 +679,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 @@ -819,7 +819,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 d22ac0c

Please sign in to comment.