summaryrefslogtreecommitdiff
path: root/sphinx/builders/manpage.py
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2022-07-18 22:08:16 +0100
committerGitHub <noreply@github.com>2022-07-18 22:08:16 +0100
commita504ac6100a577cbda1bedf80d69636603ee287c (patch)
tree0aa79585440486bdb109f7238f8f5c992dad0d99 /sphinx/builders/manpage.py
parenta340427ba4d208193d539cb7e8401be23d75547e (diff)
downloadsphinx-git-a504ac6100a577cbda1bedf80d69636603ee287c.tar.gz
Improve static typing strictness (#10569)
Diffstat (limited to 'sphinx/builders/manpage.py')
-rw-r--r--sphinx/builders/manpage.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/builders/manpage.py b/sphinx/builders/manpage.py
index ad1138c2c..b10fef48b 100644
--- a/sphinx/builders/manpage.py
+++ b/sphinx/builders/manpage.py
@@ -2,7 +2,7 @@
import warnings
from os import path
-from typing import Any, Dict, List, Set, Tuple, Union
+from typing import Any, Dict, List, Optional, Set, Tuple, Union
from docutils.frontend import OptionParser
from docutils.io import FileOutput
@@ -40,7 +40,7 @@ class ManualPageBuilder(Builder):
def get_outdated_docs(self) -> Union[str, List[str]]:
return 'all manpages' # for now
- def get_target_uri(self, docname: str, typ: str = None) -> str:
+ def get_target_uri(self, docname: str, typ: Optional[str] = None) -> str:
return ''
@progress_message(__('writing'))
@@ -111,9 +111,9 @@ def default_man_pages(config: Config) -> List[Tuple[str, str, str, List[str], in
def setup(app: Sphinx) -> Dict[str, Any]:
app.add_builder(ManualPageBuilder)
- app.add_config_value('man_pages', default_man_pages, None)
- app.add_config_value('man_show_urls', False, None)
- app.add_config_value('man_make_section_directory', False, None)
+ app.add_config_value('man_pages', default_man_pages, False)
+ app.add_config_value('man_show_urls', False, False)
+ app.add_config_value('man_make_section_directory', False, False)
return {
'version': 'builtin',