Skip to content

Commit 395f939

Browse files
committed
Fix mypy errors
1 parent baa5d06 commit 395f939

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

sphinxcontrib/applehelp/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ def init(self) -> None:
8686
raise SphinxError(__('You must set applehelp_bundle_id before '
8787
'building Apple Help output'))
8888

89-
self.bundle_path = path.join(self.outdir, # type: ignore
90-
self.config.applehelp_bundle_name + '.help')
91-
self.outdir = path.join(self.bundle_path,
92-
'Contents',
93-
'Resources',
94-
self.config.applehelp_locale + '.lproj')
89+
self.bundle_path = self.outdir / (self.config.applehelp_bundle_name + '.help')
90+
self.outdir = self.bundle_path.joinpath(
91+
'Contents',
92+
'Resources',
93+
self.config.applehelp_locale + '.lproj',
94+
)
9595

9696
def handle_finish(self) -> None:
9797
super().handle_finish()

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)