From cef83bdcadecf04efa29dcd97619c30ef53d6571 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Thu, 1 Feb 2024 18:52:40 -0600 Subject: [PATCH] !squash missing docstring --- src/pytest_doctest_docutils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pytest_doctest_docutils.py b/src/pytest_doctest_docutils.py index aad04a3..a1681af 100644 --- a/src/pytest_doctest_docutils.py +++ b/src/pytest_doctest_docutils.py @@ -197,6 +197,10 @@ def _get_flag_lookup() -> t.Dict[str, int]: def get_optionflags(config: pytest.Config) -> int: + """Fetch optionflags from pytest configuration. + + Extracted from pytest.doctest 8.0 (license: MIT). + """ optionflags_str = str(config.getini("doctest_optionflags")) flag_lookup_table = _get_flag_lookup() flag_acc = 0