diff options
author | Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com> | 2021-03-26 06:58:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 06:58:06 +0000 |
commit | bcbfbaa515dd7b18627b147a8f8219535defeccd (patch) | |
tree | 66b2e00e076f7d33c6a3b9e77c4ed350c827806b /docs/html/conf.py | |
parent | af60df514397b8f63182e77ea84aaafa2d5f9c93 (diff) | |
parent | 96615e92c4b265011295ec514feb91ce405c0602 (diff) | |
download | pip-master.tar.gz |
Merge pull request #9672 from jdufresne/mypy-docsmaster
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) |