diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2021-02-28 08:32:22 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2021-03-06 14:14:34 -0800 |
commit | 96615e92c4b265011295ec514feb91ce405c0602 (patch) | |
tree | e886cf744ef55a90b3e26815cfb7a66eff431f18 /docs/html/conf.py | |
parent | 031c34e94a95c6de9236b26f7b0710588260bbb5 (diff) | |
download | pip-96615e92c4b265011295ec514feb91ce405c0602.tar.gz |
Complete typing of docs directory
Diffstat (limited to 'docs/html/conf.py')
-rw-r--r-- | docs/html/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/html/conf.py b/docs/html/conf.py index 14ea84bfb..2a4387a35 100644 --- a/docs/html/conf.py +++ b/docs/html/conf.py @@ -5,6 +5,7 @@ import os import pathlib import re import sys +from typing import List, Tuple # Add the docs/ directory to sys.path, because pip_sphinxext.py is there. docs_dir = os.path.dirname(os.path.dirname(__file__)) @@ -93,10 +94,10 @@ html_use_index = False # List of manual pages generated -def determine_man_pages(): +def determine_man_pages() -> List[Tuple[str, str, str, str, int]]: """Determine which man pages need to be generated.""" - def to_document_name(path, base_dir): + def to_document_name(path: str, base_dir: str) -> str: """Convert a provided path to a Sphinx "document name".""" relative_path = os.path.relpath(path, base_dir) root, _ = os.path.splitext(relative_path) |