Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-28 01:31:52 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-05-03 16:41:19 +0300
commit930bf6c327b31aec6112359695f35a2c77fbae21 (patch)
tree77ec4b549ad46ea2c52b9ba40a0f011451378305 /sphinx/config.py
parentf31af4b8158e6142d918366aa0026e40575af914 (diff)
refactor: Add Optional to type annotations
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 418ecf4fb..5e265f576 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -309,7 +309,7 @@ class Config:
self.__dict__.update(state)
-def eval_config_file(filename: str, tags: Tags) -> Dict[str, Any]:
+def eval_config_file(filename: str, tags: Optional[Tags]) -> Dict[str, Any]:
"""Evaluate a config file."""
namespace: Dict[str, Any] = {}
namespace['__file__'] = filename