[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 893215a4e7)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
Miss Islington (bot) 2023-08-22 07:17:03 -07:00 committed by GitHub
parent e5d779c0e2
commit 68fd6db981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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,