PyDoc: use :param: instead of :arg: in Sphinx docstrings

While "arg" isn't deprecated "param" is preferred and used in all
Sphinx's examples & tutorials.

Ref !154039
This commit is contained in:
Campbell Barton 2026-02-07 09:03:36 +11:00
parent 40298aa015
commit 791505e2ed
96 changed files with 1131 additions and 1120 deletions

View file

@ -83,9 +83,9 @@ def _disable(template_id, *, handle_error=None):
"""
Disables a template by name.
:arg template_id: The name of the template and module.
:param template_id: The name of the template and module.
:type template_id: str
:arg handle_error: Called in the case of an error,
:param handle_error: Called in the case of an error,
taking an exception argument.
:type handle_error: Callable[[Exception], None] | None
"""