8000 Merge pull request #25760 from rcomer/new-sphinx · matplotlib/matplotlib@52a2a7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 52a2a7c

Browse files
authored
Merge pull request #25760 from rcomer/new-sphinx
unbreak doc build with Sphinx 6.2
2 parents d77801e + a8a2818 commit 52a2a7c

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)
0