Skip to content

Commit 9498860

Browse files
gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols (#94631)
1 parent 760b8cf commit 9498860

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Doc/library/sqlite3.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Module functions and constants
332332
Added the ``sqlite3.connect/handle`` auditing event.
333333

334334

335-
.. function:: register_converter(typename, converter)
335+
.. function:: register_converter(typename, converter, /)
336336

337337
Register the *converter* callable to convert SQLite objects of type
338338
*typename* into a Python object of a specific type.
@@ -346,7 +346,7 @@ Module functions and constants
346346
case-insensitively.
347347

348348

349-
.. function:: register_adapter(type, adapter)
349+
.. function:: register_adapter(type, adapter, /)
350350

351351
Register an *adapter* callable to adapt the Python type *type* into an
352352
SQLite type.
@@ -368,7 +368,7 @@ Module functions and constants
368368
.. literalinclude:: ../includes/sqlite3/complete_statement.py
369369

370370

371-
.. function:: enable_callback_tracebacks(flag)
371+
.. function:: enable_callback_tracebacks(flag, /)
372372

373373
By default you will not get any tracebacks in user-defined functions,
374374
aggregates, converters, authorizer callbacks etc. If you want to debug them,
@@ -508,7 +508,7 @@ Connection Objects
508508
.. literalinclude:: ../includes/sqlite3/md5func.py
509509

510510

511-
.. method:: create_aggregate(name, n_arg, aggregate_class)
511+
.. method:: create_aggregate(name, /, n_arg, aggregate_class)
512512

513513
Creates a user-defined aggregate function.
514514

@@ -647,7 +647,7 @@ Connection Objects
647647
.. versionadded:: 3.3
648648

649649

650-
.. method:: enable_load_extension(enabled)
650+
.. method:: enable_load_extension(enabled, /)
651651

652652
This routine allows/disallows the SQLite engine to load SQLite extensions
653653
from shared libraries. SQLite extensions can define new functions,
@@ -665,7 +665,7 @@ Connection Objects
665665

666666
.. literalinclude:: ../includes/sqlite3/load_extension.py
667667

668-
.. method:: load_extension(path)
668+
.. method:: load_extension(path, /)
669669

670670
This routine loads an SQLite extension from a shared library. You have to
671671
enable extension loading with :meth:`enable_load_extension` before you can
@@ -876,7 +876,7 @@ Cursor Objects
876876
.. index:: single: ? (question mark); in SQL statements
877877
.. index:: single: : (colon); in SQL statements
878878

879-
.. method:: execute(sql[, parameters])
879+
.. method:: execute(sql, parameters=(), /)
880880

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

894894

895-
.. method:: executemany(sql, seq_of_parameters)
895+
.. method:: executemany(sql, seq_of_parameters, /)
896896

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

909909

910-
.. method:: executescript(sql_script)
910+
.. method:: executescript(sql_script, /)
911911

912912
Execute multiple SQL statements at once.
913913
If there is a pending transaciton,
@@ -957,11 +957,11 @@ Cursor Objects
957957
The cursor will be unusable from this point forward; a :exc:`ProgrammingError`
958958
exception will be raised if any operation is attempted with the cursor.
959959

960-
.. method:: setinputsizes(sizes)
960+
.. method:: setinputsizes(sizes, /)
961961

962962
Required by the DB-API. Does nothing in :mod:`sqlite3`.
963963

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

966966
Required by the DB-API. Does nothing in :mod:`sqlite3`.
967967

0 commit comments

Comments
 (0)