File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 13
13
import gzip
14
14
import re
15
15
from os import path
16
- from typing import Any , Dict
16
+ from typing import TYPE_CHECKING , Any , Dict
17
17
18
18
from docutils import nodes
19
19
from sphinx import addnodes
31
31
import lxml .etree as etree # type: ignore
32
32
33
33
34
- if False :
34
+ if TYPE_CHECKING :
35
35
# For type annotation
36
+ from pathlib import Path
36
37
from typing import List # NOQA
37
38
38
39
__version__ = '1.0.3'
@@ -74,7 +75,7 @@ def handle_finish(self):
74
75
self .build_devhelp (self .outdir , self .config .devhelp_basename )
75
76
76
77
def build_devhelp (self , outdir , outname ):
77
- # type: (str , str) -> None
78
+ # type: (Path , str) -> None
78
79
logger .info (__ ('dumping devhelp index...' ))
79
80
80
81
# Basic info
Original file line number Diff line number Diff line change @@ -33,4 +33,4 @@ extras =
33
33
test
34
34
lint
35
35
commands =
36
- mypy sphinxcontrib/
36
+ mypy sphinxcontrib/ --explicit-package-bases
You can’t perform that action at this time.
0 commit comments