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

Skip to content

Commit ffdebe9

Browse files
authored
Merge pull request #25761 from meeseeksmachine/auto-backport-of-pr-25760-on-v3.7.x
Backport PR #25760 on branch v3.7.x (unbreak doc build with Sphinx 6.2)
2 parents 207de3d + 848aa1e commit ffdebe9

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)