# sphinx 9.2.0 (BSD-2-Clause), harvested by tools/harvest_corpus.py
=== input
Log a sphinx warning.

        It is recommended to include a ``type`` and ``subtype`` for warnings as
        these can be displayed to the user using :confval:`show_warning_types`
        and used in :confval:`suppress_warnings` to suppress specific warnings.

        It is also recommended to specify a ``location`` whenever possible
        to help users in correcting the warning.

        :param msg: The message, which may contain placeholders for ``args``.
        :param args: The arguments to substitute into ``msg``.
        :param type: The type of the warning.
        :param subtype: The subtype of the warning.
        :param location: The source location of the warning's origin,
            which can be a string (the ``docname`` or ``docname:lineno``),
            a tuple of ``(docname, lineno)``,
            or the docutils node object.
        :param nonl: Whether to append a new line terminator to the message.
        :param color: A color code for the message.
        :param once: Do not log this warning,
            if a previous warning already has same ``msg``, ``args`` and ``once=True``.
        
=== parse rest
short_description: 'Log a sphinx warning.'
long_description: |
  It is recommended to include a ``type`` and ``subtype`` for warnings as
  these can be displayed to the user using :confval:`show_warning_types`
  and used in :confval:`suppress_warnings` to suppress specific warnings.
  
  It is also recommended to specify a ``location`` whenever possible
  to help users in correcting the warning.
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: 'The message, which may contain placeholders for ``args``.'
  kind: param
  key: 'param'
  arg_name: 'msg'
  is_optional: False
- DocstringParam
  description: 'The arguments to substitute into ``msg``.'
  kind: param
  key: 'param'
  arg_name: 'args'
  is_optional: False
- DocstringParam
  description: 'The type of the warning.'
  kind: param
  key: 'param'
  arg_name: 'type'
  is_optional: False
- DocstringParam
  description: 'The subtype of the warning.'
  kind: param
  key: 'param'
  arg_name: 'subtype'
  is_optional: False
- DocstringParam
  description: |
    The source location of the warning's origin,
    which can be a string (the ``docname`` or ``docname:lineno``),
    a tuple of ``(docname, lineno)``,
    or the docutils node object.
  kind: param
  key: 'param'
  arg_name: 'location'
  is_optional: False
- DocstringParam
  description: 'Whether to append a new line terminator to the message.'
  kind: param
  key: 'param'
  arg_name: 'nonl'
  is_optional: False
- DocstringParam
  description: 'A color code for the message.'
  kind: param
  key: 'param'
  arg_name: 'color'
  is_optional: False
- DocstringParam
  description: |
    Do not log this warning,
    if a previous warning already has same ``msg``, ``args`` and ``once=True``.
  kind: param
  key: 'param'
  arg_name: 'once'
  is_optional: False
=== detect
rest
=== compose rest
Log a sphinx warning.

It is recommended to include a ``type`` and ``subtype`` for warnings as
these can be displayed to the user using :confval:`show_warning_types`
and used in :confval:`suppress_warnings` to suppress specific warnings.

It is also recommended to specify a ``location`` whenever possible
to help users in correcting the warning.

:param msg: The message, which may contain placeholders for ``args``.
:param args: The arguments to substitute into ``msg``.
:param type: The type of the warning.
:param subtype: The subtype of the warning.
:param location: The source location of the warning's origin,
    which can be a string (the ``docname`` or ``docname:lineno``),
    a tuple of ``(docname, lineno)``,
    or the docutils node object.
:param nonl: Whether to append a new line terminator to the message.
:param color: A color code for the message.
:param once: Do not log this warning,
    if a previous warning already has same ``msg``, ``args`` and ``once=True``.
