diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2022-07-18 22:49:56 +0100 |
commit | 94024e6efaa23869a6141dba05118c158d3d3f8f (patch) | |
tree | 1bfccc5447ca099627c4c31f536d7082b7b9eb6a /sphinx/setup_command.py | |
parent | a4d41aa889388bf8ee2815d4819235b5ca978a8d (diff) | |
parent | eb0a6c574fd18d5c5d903e5d07cba8cafc376ee0 (diff) | |
download | sphinx-git-94024e6efaa23869a6141dba05118c158d3d3f8f.tar.gz |
Merge branch '5.x'
# Conflicts:
# sphinx/ext/autodoc/__init__.py
# sphinx/writers/html5.py
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r-- | sphinx/setup_command.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index 5e63df3a7..bbeaa2281 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -7,7 +7,7 @@ import os import sys import warnings from io import StringIO -from typing import Any, Dict +from typing import Any, Dict, Optional from sphinx.application import Sphinx from sphinx.cmd.build import handle_exception @@ -90,15 +90,15 @@ class BuildDoc(Command): def initialize_options(self) -> None: self.fresh_env = self.all_files = False self.pdb = False - self.source_dir: str = None - self.build_dir: str = None + self.source_dir: Optional[str] = None + self.build_dir: Optional[str] = None self.builder = 'html' self.warning_is_error = False self.project = '' self.version = '' self.release = '' self.today = '' - self.config_dir: str = None + self.config_dir: Optional[str] = None self.link_index = False self.copyright = '' # Link verbosity to distutils' (which uses 1 by default). |