diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 12:19:09 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-03-03 23:17:34 +0900 |
commit | 554199d30e418f72f215fae65924b47249d2544c (patch) | |
tree | fd952e21a8f4e9dabf91c5e3731dea3712ade006 /sphinx/cmdline.py | |
parent | 28b1aceefedbb9c3a12d6ba7c712df8ad5e98db8 (diff) | |
download | sphinx-git-554199d30e418f72f215fae65924b47249d2544c.tar.gz |
Upgrade to mypy-0.5
Diffstat (limited to 'sphinx/cmdline.py')
-rw-r--r-- | sphinx/cmdline.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 70828c635..d30956d6e 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -30,7 +30,7 @@ from sphinx.util.pycompat import terminal_safe if False: # For type annotation - from typing import Any, IO, Union # NOQA + from typing import Any, IO, List, Union # NOQA USAGE = """\ @@ -220,12 +220,12 @@ def main(argv): # handle remaining filename arguments filenames = args[2:] - err = 0 # type: ignore + errored = False for filename in filenames: if not path.isfile(filename): print('Error: Cannot find file %r.' % filename, file=sys.stderr) - err = 1 # type: ignore - if err: + errored = True + if errored: return 1 # likely encoding used for command-line arguments |