summaryrefslogtreecommitdiff
path: root/sphinx/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index 9a968aedf..1ba98d007 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -256,7 +256,7 @@ class Config:
return default(self)
return default
- def __getitem__(self, name: str) -> str:
+ def __getitem__(self, name: str) -> Any:
return getattr(self, name)
def __setitem__(self, name: str, value: Any) -> None:
@@ -310,7 +310,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