Skip to content

Commit 68fd6db

Browse files
[3.12] Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285) (#108287)
Docs: align the param spec of sqlite3.Connection methods with the implementation (GH-108285) - 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 <[email protected]>
1 parent e5d779c commit 68fd6db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ Connection objects
755755
('acbd18db4cc2f85cedef654fccc4a4d8',)
756756

757757

758-
.. method:: create_aggregate(name, /, n_arg, aggregate_class)
758+
.. method:: create_aggregate(name, n_arg, aggregate_class)
759759

760760
Create or remove a user-defined SQL aggregate function.
761761

@@ -895,7 +895,7 @@ Connection objects
895895

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

898-
.. method:: create_collation(name, callable)
898+
.. method:: create_collation(name, callable, /)
899899

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

0 commit comments

Comments
 (0)