Skip to content

Commit 893215a

Browse files
Docs: align the param spec of sqlite3.Connection methods with the implementation (#108285)
- no parameters of create_aggregate() are positional-only - all parameters of create_collation() are positional-only
1 parent d7202e4 commit 893215a

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
@@ -764,7 +764,7 @@ Connection objects
764764
('acbd18db4cc2f85cedef654fccc4a4d8',)
765765

766766

767-
.. method:: create_aggregate(name, /, n_arg, aggregate_class)
767+
.. method:: create_aggregate(name, n_arg, aggregate_class)
768768

769769
Create or remove a user-defined SQL aggregate function.
770770

@@ -904,7 +904,7 @@ Connection objects
904904

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

907-
.. method:: create_collation(name, callable)
907+
.. method:: create_collation(name, callable, /)
908908

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

0 commit comments

Comments
 (0)