Skip to content

Commit

Permalink
Return parallel_read_safe in the autodoc_intenum tutorial (sphinx…
Browse files Browse the repository at this point in the history
…-doc#12288)

Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
mgeier and AA-Turner authored Apr 26, 2024
1 parent 2dcc8f9 commit 7649798
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/development/tutorials/examples/autodoc_intenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from docutils.statemachine import StringList

from sphinx.application import Sphinx
from sphinx.util.typing import ExtensionMetadata


class IntEnumDocumenter(ClassDocumenter):
Expand Down Expand Up @@ -52,6 +53,10 @@ def add_content(
self.add_line('', source_name)


def setup(app: Sphinx) -> None:
def setup(app: Sphinx) -> ExtensionMetadata:
app.setup_extension('sphinx.ext.autodoc') # Require autodoc extension
app.add_autodocumenter(IntEnumDocumenter)
return {
'version': '1',
'parallel_read_safe': True,
}

0 comments on commit 7649798

Please sign in to comment.