Skip to content

Commit 5a21d90

Browse files
committed
doc: fix sphinx hook
1 parent 12e4cf3 commit 5a21d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def copy_examples_to_source_dir(app: sphinx.application.Sphinx):
313313
EXAMPLES_DIRECTORY = pathlib.Path().parent.parent / "examples"
314314
copy_directory(EXAMPLES_DIRECTORY, SOURCE_EXAMPLES)
315315

316-
def copy_examples_to_output_dir(app: sphinx.application.Sphinx):
316+
def copy_examples_to_output_dir(app: sphinx.application.Sphinx, exception: Exception):
317317
"""
318318
Copy the examples directory to the output directory of the documentation.
319319
@@ -327,7 +327,7 @@ def copy_examples_to_output_dir(app: sphinx.application.Sphinx):
327327
EXAMPLES_DIRECTORY = pathlib.Path().parent.parent / "examples"
328328
copy_directory(EXAMPLES_DIRECTORY, OUTPUT_DIRECTORY)
329329

330-
def remove_examples_from_source_dir(app, exception):
330+
def remove_examples_from_source_dir(app: sphinx.application.Sphinx, exception: Exception):
331331
"""
332332
Remove the example files from the documentation source directory.
333333

0 commit comments

Comments
 (0)