diff --git a/sphinx_gallery/py_source_parser.py b/sphinx_gallery/py_source_parser.py index ec6ccff9d..a7b401d8a 100644 --- a/sphinx_gallery/py_source_parser.py +++ b/sphinx_gallery/py_source_parser.py @@ -83,7 +83,7 @@ def _get_docstring_and_rest(filename): lineno : int The line number. node : ast.Module - The ast node. When `filename` parsed with `mode='exec' node should be + The ast node. When `filename` parsed with `mode='exec'` node should be of type `ast.Module`. """ node, content = parse_source_file(filename)