Skip to content

Commit

Permalink
Fix sphinx import in docs extension (#1376)
Browse files Browse the repository at this point in the history
The qiskit-experiments Sphinx extension was importing Sphinx from an
internal location that was removed in 7.2. Here the import is moved to
the main locaiont for the Sphinx app.
  • Loading branch information
wshanks authored Jan 26, 2024
1 parent 2461683 commit 94541e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/_ext/custom_styles/option_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
from typing import Type, Optional

import numpy as np
from sphinx.ext.autodoc import Sphinx, Options as SphinxOptions
from sphinx.application import Sphinx
from sphinx.ext.autodoc import Options as SphinxOptions
from sphinx.ext.napoleon import Config as NapoleonConfig
from sphinx.ext.napoleon import GoogleDocstring

Expand Down

0 comments on commit 94541e6

Please sign in to comment.