File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 6
6
from __future__ import annotations
7
7
8
8
import gzip
9
+ import os
9
10
import re
10
11
from os import path
11
- from typing import TYPE_CHECKING , Any
12
+ from typing import Any
12
13
13
14
from docutils import nodes
14
15
from sphinx import addnodes
25
26
except ImportError :
26
27
import lxml .etree as etree # type: ignore
27
28
28
- if TYPE_CHECKING :
29
- from pathlib import Path
30
-
31
29
__version__ = '1.0.4'
32
30
__version_info__ = (1 , 0 , 4 )
33
31
@@ -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
64
67
- def build_devhelp (self , outdir : Path , outname : str ) -> None :
65
+ def build_devhelp (self , outdir : str | os . PathLike [ str ] , outname : str ) -> None :
68
66
logger .info (__ ('dumping devhelp index...' ))
69
67
70
68
# Basic info
You can’t perform that action at this time.
0 commit comments