Enable keyword-based exclusion of a single line from docsig checks
Currently, docsig does not provide a reliable way to suppress a single diagnostic message on the exact line.
In particular, when a diagnostic is emitted on a decorator line, inline suppression comments such as # docsig: disable or # docsig: disable=SIG402 are not honored.
Proposed feature
Introduce a lightweight, explicit mechanism to exclude a single line from docsig validation.
For example:
@deprecated_signature(since='11.4.0') # docsig: SIG402
def my_function():
"""This is my docstring.
Ignore a single test.
""" # docsig: SIG402
Enable keyword-based exclusion of a single line from docsig checks
Currently,
docsigdoes not provide a reliable way to suppress a single diagnostic message on the exact line.In particular, when a diagnostic is emitted on a decorator line, inline suppression comments such as
# docsig: disableor# docsig: disable=SIG402are not honored.Proposed feature
Introduce a lightweight, explicit mechanism to exclude a single line from docsig validation.
For example: