Skip to content

Commit b3c0725

Browse files
committed
Fix mypy errors
1 parent 8c7a3f8 commit b3c0725

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sphinxcontrib/htmlhelp/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import html
1212
import os
1313
from os import path
14+
from pathlib import Path
1415
from typing import Any, Dict, List, Set, Tuple, Type
1516

1617
from docutils import nodes
@@ -267,7 +268,7 @@ def build_toc_file(self) -> None:
267268
}
268269
f.write(self.render('project.hhc', context))
269270

270-
def build_hhx(self, outdir: str, outname: str) -> None:
271+
def build_hhx(self, outdir: Path, outname: str) -> None:
271272
logger.info(__('writing index file...'))
272273
index = IndexEntries(self.env).create_index(self)
273274
filename = path.join(outdir, outname + '.hhk')

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ description =
4242
extras =
4343
lint
4444
commands=
45-
mypy sphinxcontrib/
45+
mypy sphinxcontrib/ --explicit-package-bases

0 commit comments

Comments
 (0)