Skip to content

Commit

Permalink
Fix more mypy errors and pyflakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Sep 8, 2023
1 parent c720862 commit 38ff2af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pydoctor/sphinx_ext/build_apidocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def on_build_finished(app: Sphinx, exception: Exception) -> None:

runs = app.config.pydoctor_args
placeholders = {
'outdir': app.outdir,
'outdir': str(app.outdir),
}

if not isinstance(runs, Mapping):
Expand Down Expand Up @@ -86,7 +86,7 @@ def on_builder_inited(app: Sphinx) -> None:
raise ConfigError("Missing 'pydoctor_args'.")

placeholders = {
'outdir': app.outdir,
'outdir': str(app.outdir),
}

runs = config.pydoctor_args
Expand Down
2 changes: 1 addition & 1 deletion pydoctor/templatewriter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Render pydoctor data as HTML."""
from typing import Any, Iterable, Iterator, Optional, Union, cast, TYPE_CHECKING
from typing import Any, Iterable, Iterator, Optional, Union, TYPE_CHECKING
if TYPE_CHECKING:
from typing_extensions import Protocol, runtime_checkable
else:
Expand Down

0 comments on commit 38ff2af

Please sign in to comment.