Skip to content

Commit 60bd513

Browse files
authored
Merge pull request #32 from Luflosi/fix-AttributeError
Fix AttributeError: module 'sphinx' has no attribute 'application'
2 parents 0e5a1b5 + 323a008 commit 60bd513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sphinx_basic_ng/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from pathlib import Path
66
from typing import Any, Dict
77

8-
import sphinx
8+
from sphinx.application import Sphinx
99

1010
_THEME_PATH = (Path(__file__).parent / "theme" / "basic-ng").resolve()
1111

1212

13-
def setup(app: sphinx.application.Sphinx) -> Dict[str, Any]:
13+
def setup(app: Sphinx) -> Dict[str, Any]:
1414
"""Entry point for sphinx theming."""
1515
app.require_sphinx("4.0")
1616

0 commit comments

Comments
 (0)