fix another pylint error

This commit is contained in:
Julin S 2020-04-20 13:30:23 +05:30
parent 680d6ebb58
commit fd9e0f19c6
1 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@
"""Generate the html documentation based on the asciidoc files."""
from typing import List, Tuple, Optional
from typing import List, Optional
import re
import os
import os.path
@ -207,7 +207,8 @@ class AsciiDoc:
for dst, link_name in [
('README.html', 'index.html'),
((pathlib.Path('doc') / 'quickstart.html'), 'quickstart.html')]:
((pathlib.Path('doc') / 'quickstart.html'),
'quickstart.html')]:
assert isinstance(dst, (str, pathlib.Path)) # for mypy
try:
(outdir / link_name).symlink_to(dst)