diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-03-28 01:31:52 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-05-03 16:41:19 +0300 |
commit | 930bf6c327b31aec6112359695f35a2c77fbae21 (patch) | |
tree | 77ec4b549ad46ea2c52b9ba40a0f011451378305 /sphinx/config.py | |
parent | f31af4b8158e6142d918366aa0026e40575af914 (diff) |
refactor: Add Optional to type annotations
Diffstat (limited to 'sphinx/config.py')
-rw-r--r-- | sphinx/config.py | 2 |
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 |