Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c542690

Browse files
rcomermeeseeksmachine
authored andcommitted
Backport PR #25760: unbreak doc build with Sphinx 6.2
1 parent 765cead commit c542690

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/sphinxext/missing_references.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def prepare_missing_references_handler(app):
278278
# for use later. Otherwise, add all known missing references to
279279
# ``nitpick_ignore```
280280
if not app.config.missing_references_write_json:
281+
# Since Sphinx v6.2, nitpick_ignore may be a list, set or tuple, and
282+
# defaults to set. Previously it was always a list. Cast to list for
283+
# consistency across versions.
284+
app.config.nitpick_ignore = list(app.config.nitpick_ignore)
281285
app.config.nitpick_ignore.extend(ignored_references.keys())
282286

283287

0 commit comments

Comments
 (0)