We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b0bc58 + 13a3631 commit 84537b0Copy full SHA for 84537b0
jupyterlite_sphinx/jupyterlite_sphinx.py
@@ -4,7 +4,7 @@
4
import shutil
5
import glob
6
import re
7
-from typing import Dict, Any
+from typing import Dict, Any, List
8
9
from pathlib import Path
10
@@ -608,9 +608,9 @@ def run(self):
608
return [content_container_node, notebook_container, script_node]
609
610
611
-def _process_docstring_examples(app, docname, source):
612
- source_path = app.env.doc2path(docname)
613
- if source_path.endswith(".py"):
+def _process_docstring_examples(app: Sphinx, docname: str, source: List[str]) -> None:
+ source_path: str = app.env.doc2path(docname)
+ if source_path.suffix == ".py":
614
source[0] = insert_try_examples_directive(source[0])
615
616
0 commit comments