Skip to content

Commit f7d0bb3

Browse files
greutchrisjsewellpre-commit-ci[bot]
authored
🐛 FIX: add missing _cache argument (#8)
Fix for sphinx-doc/sphinx#11290 Co-authored-by: Chris Sewell <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 429a49c commit f7d0bb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sphinx_pytest/builders.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class DoctreeBuilder(DummyBuilder):
1818
def init(self) -> None:
1919
self.doctrees: dict[str, nodes.document] = {}
2020

21-
def write_doctree(self, docname: str, doctree: nodes.document) -> None:
21+
def write_doctree(
22+
self, docname: str, doctree: nodes.document, *, _cache: bool = True
23+
) -> None:
2224
# save the doctree instead of pickling to disk
2325
self.doctrees[docname] = doctree
2426

0 commit comments

Comments
 (0)