Skip to content

Commit 43e6eee

Browse files
Apply suggestions from code review
Convert `_StrPath` to `str` instead
1 parent 647cba4 commit 43e6eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ def run(self):
609609

610610

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

616616

0 commit comments

Comments
 (0)