]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Docs: align the param spec of sqlite3.Connection methods with the implementati...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 Aug 2023 14:17:03 +0000 (07:17 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 14:17:03 +0000 (16:17 +0200)
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 893215a4e7f59eabb8ccdf188c4b9b1de5bd8966)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/library/sqlite3.rst

index 23a22e637c0a93bfa94c08548f58305ba7d26731..93ca46811f1c0a8e7690817461be8fe2a1106bfb 100644 (file)
@@ -755,7 +755,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.
 
@@ -895,7 +895,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,