Skip to content

Commit 84537b0

Browse files
authored
Merge pull request #199 from agriyakhetarpal/compatibility-with-sphinx-8
Fix compatibility with Sphinx 8
2 parents 0b0bc58 + 13a3631 commit 84537b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import shutil
55
import glob
66
import re
7-
from typing import Dict, Any
7+
from typing import Dict, Any, List
88

99
from pathlib import Path
1010

@@ -608,9 +608,9 @@ def run(self):
608608
return [content_container_node, notebook_container, script_node]
609609

610610

611-
def _process_docstring_examples(app, docname, source):
612-
source_path = app.env.doc2path(docname)
613-
if source_path.endswith(".py"):
611+
def _process_docstring_examples(app: Sphinx, docname: str, source: List[str]) -> None:
612+
source_path: str = app.env.doc2path(docname)
613+
if source_path.suffix == ".py":
614614
source[0] = insert_try_examples_directive(source[0])
615615

616616

0 commit comments

Comments
 (0)