diff options
author | danieleades <33452915+danieleades@users.noreply.github.com> | 2022-07-18 22:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-18 22:08:16 +0100 |
commit | a504ac6100a577cbda1bedf80d69636603ee287c (patch) | |
tree | 0aa79585440486bdb109f7238f8f5c992dad0d99 /sphinx/setup_command.py | |
parent | a340427ba4d208193d539cb7e8401be23d75547e (diff) | |
download | sphinx-git-a504ac6100a577cbda1bedf80d69636603ee287c.tar.gz |
Improve static typing strictness (#10569)
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). |