diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-04-08 21:42:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 21:42:21 +0900 |
commit | 3ad1e5e7d1a5fa38e94124e8afc441764a95cdd9 (patch) | |
tree | 7124eeb06475b8fd605ee335c49e7c5d853a6846 /sphinx/application.py | |
parent | 01cac597e3ca6daf2a5a702107e8dd6597090802 (diff) | |
parent | d3f0de4e122aa8213f7d127f75d94311d2bed682 (diff) | |
download | sphinx-git-3ad1e5e7d1a5fa38e94124e8afc441764a95cdd9.tar.gz |
Merge pull request #9064 from tk0miya/refactor_type_annotation
refactor: Add Optional to type annotations
Diffstat (limited to 'sphinx/application.py')
-rw-r--r-- | sphinx/application.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index ef77e34db..cb91b94fe 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -526,8 +526,7 @@ class Sphinx: ``'env'``) to a string. However, booleans are still accepted and converted internally. """ - logger.debug('[app] adding config value: %r', - (name, default, rebuild) + ((types,) if types else ())) + logger.debug('[app] adding config value: %r', (name, default, rebuild, types)) if rebuild in (False, True): rebuild = 'env' if rebuild else '' self.config.add(name, default, rebuild, types) |