Skip to content

Commit b7bd16b

Browse files
committed
Some type defs have been fixed.
1 parent 305dfea commit b7bd16b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/antsibull_docutils/markdown.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -729,11 +729,8 @@ def render_as_markdown(
729729
# pylint: disable=duplicate-code
730730
parts = publish_parts(
731731
source=source,
732-
# The type information for the following two parameters seems to be wrong.
733-
# According to the docutils sources the expected type is StrPath | None, which
734-
# is defined as str | os.PathLike[str] | None.
735-
source_path=source_path, # type: ignore
736-
destination_path=destination_path, # type: ignore
732+
source_path=source_path,
733+
destination_path=destination_path,
737734
parser_name=parser_name,
738735
writer=MarkDownWriter(document_context),
739736
settings_overrides=get_docutils_publish_settings(

0 commit comments

Comments
 (0)