mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix mypy violations
This commit is contained in:
parent
c80a26c81b
commit
0a04f346a3
@ -355,12 +355,12 @@ class Config(object):
|
||||
def convert_source_suffix(app, config):
|
||||
# type: (Sphinx, Config) -> None
|
||||
"""This converts source_suffix to string-list."""
|
||||
if isinstance(config.source_suffix, string_types): # type: ignore
|
||||
if isinstance(config.source_suffix, string_types):
|
||||
config.source_suffix = [config.source_suffix] # type: ignore
|
||||
|
||||
|
||||
def setup(app):
|
||||
# type: (Sphinx) -> None
|
||||
# type: (Sphinx) -> Dict[unicode, Any]
|
||||
app.connect('config-inited', convert_source_suffix)
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user