Skip to content

[docutils] Reporter.debug() can return None - #16882

Open
hnwg wants to merge 1 commit into
python:mainfrom
hnwg:docutils-reporter-debug-none
Open

hnwg wants to merge 1 commit into
python:mainfrom
hnwg:docutils-reporter-debug-none

Conversation

@hnwg

@hnwg hnwg commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

If the debug_flag on the reporter is true, Reporter.debug() returns the system message. Otherwise, None will be returned.

>>> from docutils.utils import Reporter
>>> print(Reporter("<test>", 1, 5).debug("hidden"))
None

Reporter.debug() returns the system message only when debug_flag is
set, and None otherwise.
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant