We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.PathLike
pathlib.Path
1 parent 6419ea4 commit 7ecbc2cCopy full SHA for 7ecbc2c
sphinxcontrib/devhelp/__init__.py
@@ -6,9 +6,10 @@
6
from __future__ import annotations
7
8
import gzip
9
+import os
10
import re
11
from os import path
-from typing import TYPE_CHECKING, Any
12
+from typing import Any
13
14
from docutils import nodes
15
from sphinx import addnodes
@@ -25,9 +26,6 @@
25
26
except ImportError:
27
import lxml.etree as etree # type: ignore
28
-if TYPE_CHECKING:
29
- from pathlib import Path
30
-
31
__version__ = '1.0.4'
32
__version_info__ = (1, 0, 4)
33
@@ -64,7 +62,7 @@ def init(self) -> None:
64
62
def handle_finish(self) -> None:
65
63
self.build_devhelp(self.outdir, self.config.devhelp_basename)
66
67
- def build_devhelp(self, outdir: Path, outname: str) -> None:
+ def build_devhelp(self, outdir: str | os.PathLike[str], outname: str) -> None:
68
logger.info(__('dumping devhelp index...'))
69
70
# Basic info
0 commit comments