Skip to content

Commit e6cfdf3

Browse files
committed
Use os.PathLike over pathlib.Path
Sphinx 7.1 and earlier don't use ``pathlib`` internally.
1 parent 5c3bbc6 commit e6cfdf3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sphinxcontrib/htmlhelp/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import html
66
import os
77
from os import path
8-
from pathlib import Path
98
from typing import Any
109

1110
from docutils import nodes
@@ -256,7 +255,7 @@ def build_toc_file(self) -> None:
256255
}
257256
f.write(self.render('project.hhc', context))
258257

259-
def build_hhx(self, outdir: Path, outname: str) -> None:
258+
def build_hhx(self, outdir: str | os.PathLike[str], outname: str) -> None:
260259
logger.info(__('writing index file...'))
261260
index = IndexEntries(self.env).create_index(self)
262261
filename = path.join(outdir, outname + '.hhk')

0 commit comments

Comments
 (0)