Skip to content

Commit d22ac0c

Browse files
[3.11] Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285) (#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>
1 parent 9d00379 commit d22ac0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/sqlite3.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ Connection objects
679679
('acbd18db4cc2f85cedef654fccc4a4d8',)
680680

681681

682-
.. method:: create_aggregate(name, /, n_arg, aggregate_class)
682+
.. method:: create_aggregate(name, n_arg, aggregate_class)
683683

684684
Create or remove a user-defined SQL aggregate function.
685685

@@ -819,7 +819,7 @@ Connection objects
819819

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

822-
.. method:: create_collation(name, callable)
822+
.. method:: create_collation(name, callable, /)
823823

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

0 commit comments

Comments
 (0)