diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-04-30 16:02:12 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-08 01:56:50 +0900 |
commit | d3f0de4e122aa8213f7d127f75d94311d2bed682 (patch) | |
tree | 1feb6e1acfa2a3dd817fc0f7f841ec2c6f24854a /sphinx/ext/autosummary/generate.py | |
parent | 245b3c32df1965b6bd5952cf25e19beef965a01b (diff) | |
download | sphinx-git-d3f0de4e122aa8213f7d127f75d94311d2bed682.tar.gz |
refactor: Add Optional to type annotations
Diffstat (limited to 'sphinx/ext/autosummary/generate.py')
-rw-r--r-- | sphinx/ext/autosummary/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autosummary/generate.py b/sphinx/ext/autosummary/generate.py index 2b17ccbb9..55cad705f 100644 --- a/sphinx/ext/autosummary/generate.py +++ b/sphinx/ext/autosummary/generate.py @@ -407,7 +407,7 @@ def generate_autosummary_docs(sources: List[str], output_dir: str = None, logger.warning(__('[autosummary] failed to import %r: %s') % (entry.name, e)) continue - context = {} + context: Dict[str, Any] = {} if app: context.update(app.config.autosummary_context) |