Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Aug 7, 2023
1 parent f461ed2 commit 14fd413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions sphinxcontrib/qthelp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import posixpath
import re
from os import path
from pathlib import Path
from typing import Any, Dict, Iterable, List, Tuple, cast

from docutils import nodes
Expand Down Expand Up @@ -92,7 +93,7 @@ def handle_finish(self) -> None:
}
self.build_qhp(self.outdir, self.config.qthelp_basename)

def build_qhp(self, outdir: str, outname: str) -> None:
def build_qhp(self, outdir: Path, outname: str) -> None:
logger.info(__('writing project file...'))

# sections
Expand Down Expand Up @@ -242,7 +243,7 @@ def build_keywords(self, title: str, refs: List[Any], subitems: Any) -> List[str

return keywords

def get_project_files(self, outdir: str) -> List[str]:
def get_project_files(self, outdir: Path) -> List[str]:
project_files = []
staticdir = path.join(outdir, '_static')
imagesdir = path.join(outdir, self.imagedir)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ extras =
test
lint
commands=
mypy sphinxcontrib/
mypy sphinxcontrib/ --explicit-package-bases

0 comments on commit 14fd413

Please sign in to comment.