mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix mypy violation
This commit is contained in:
parent
ae294d39d1
commit
2be87e4851
@ -278,7 +278,7 @@ class FiletypeNotFoundError(Exception):
|
||||
|
||||
|
||||
def get_filetype(source_suffix, filename):
|
||||
# type: (Dict[unicode, unicode]) -> unicode
|
||||
# type: (Dict[unicode, unicode], unicode) -> unicode
|
||||
for suffix, filetype in iteritems(source_suffix):
|
||||
if filename.endswith(suffix):
|
||||
# If default filetype (None), considered as restructuredtext.
|
||||
|
Loading…
Reference in New Issue
Block a user