Skip to content

Commit fa44a76

Browse files
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (GH-94631)
(cherry picked from commit 9498860) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 37a47b1 commit fa44a76

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/library/sqlite3.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Module functions and constants
322322
Added the ``sqlite3.connect/handle`` auditing event.
323323

324324

325-
.. function:: register_converter(typename, converter)
325+
.. function:: register_converter(typename, converter, /)
326326

327327
Register the *converter* callable to convert SQLite objects of type
328328
*typename* into a Python object of a specific type.
@@ -336,7 +336,7 @@ Module functions and constants
336336
case-insensitively.
337337

338338

339-
.. function:: register_adapter(type, adapter)
339+
.. function:: register_adapter(type, adapter, /)
340340

341341
Register an *adapter* callable to adapt the Python type *type* into an
342342
SQLite type.
@@ -358,7 +358,7 @@ Module functions and constants
358358
.. literalinclude:: ../includes/sqlite3/complete_statement.py
359359

360360

361-
.. function:: enable_callback_tracebacks(flag)
361+
.. function:: enable_callback_tracebacks(flag, /)
362362

363363
By default you will not get any tracebacks in user-defined functions,
364364
aggregates, converters, authorizer callbacks etc. If you want to debug them,
@@ -498,7 +498,7 @@ Connection Objects
498498
.. literalinclude:: ../includes/sqlite3/md5func.py
499499

500500

501-
.. method:: create_aggregate(name, n_arg, aggregate_class)
501+
.. method:: create_aggregate(name, /, n_arg, aggregate_class)
502502

503503
Creates a user-defined aggregate function.
504504

@@ -637,7 +637,7 @@ Connection Objects
637637
.. versionadded:: 3.3
638638

639639

640-
.. method:: enable_load_extension(enabled)
640+
.. method:: enable_load_extension(enabled, /)
641641

642642
This routine allows/disallows the SQLite engine to load SQLite extensions
643643
from shared libraries. SQLite extensions can define new functions,
@@ -655,7 +655,7 @@ Connection Objects
655655

656656
.. literalinclude:: ../includes/sqlite3/load_extension.py
657657

658-
.. method:: load_extension(path)
658+
.. method:: load_extension(path, /)
659659

660660
This routine loads an SQLite extension from a shared library. You have to
661661
enable extension loading with :meth:`enable_load_extension` before you can
@@ -866,7 +866,7 @@ Cursor Objects
866866
.. index:: single: ? (question mark); in SQL statements
867867
.. index:: single: : (colon); in SQL statements
868868

869-
.. method:: execute(sql[, parameters])
869+
.. method:: execute(sql, parameters=(), /)
870870

871871
Execute an SQL statement. Values may be bound to the statement using
872872
:ref:`placeholders <sqlite3-placeholders>`.
@@ -882,7 +882,7 @@ Cursor Objects
882882
a transaction is implicitly opened before executing *sql*.
883883

884884

885-
.. method:: executemany(sql, seq_of_parameters)
885+
.. method:: executemany(sql, seq_of_parameters, /)
886886

887887
Execute a :ref:`parameterized <sqlite3-placeholders>` SQL command
888888
against all parameter sequences or mappings found in the sequence
@@ -897,7 +897,7 @@ Cursor Objects
897897
.. literalinclude:: ../includes/sqlite3/executemany_2.py
898898

899899

900-
.. method:: executescript(sql_script)
900+
.. method:: executescript(sql_script, /)
901901

902902
Execute multiple SQL statements at once.
903903
If there is a pending transaciton,
@@ -947,11 +947,11 @@ Cursor Objects
947947
The cursor will be unusable from this point forward; a :exc:`ProgrammingError`
948948
exception will be raised if any operation is attempted with the cursor.
949949

950-
.. method:: setinputsizes(sizes)
950+
.. method:: setinputsizes(sizes, /)
951951

952952
Required by the DB-API. Does nothing in :mod:`sqlite3`.
953953

954-
.. method:: setoutputsize(size [, column])
954+
.. method:: setoutputsize(size, column=None, /)
955955

956956
Required by the DB-API. Does nothing in :mod:`sqlite3`.
957957

0 commit comments

Comments
 (0)