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
5bcef2a924
commit
6371d69d79
@ -13,4 +13,4 @@ import sys
|
||||
|
||||
from sphinx.cmd.build import main
|
||||
|
||||
sys.exit(main(sys.argv[1:]))
|
||||
sys.exit(main(sys.argv[1:])) # type: ignore
|
||||
|
@ -198,7 +198,7 @@ def make_main(argv=sys.argv[1:]): # type: ignore
|
||||
# type: (List[unicode]) -> int
|
||||
"""Sphinx build "make mode" entry."""
|
||||
from sphinx import make_mode
|
||||
return make_mode.run_make_mode(argv[1:]) # type: ignore
|
||||
return make_mode.run_make_mode(argv[1:])
|
||||
|
||||
|
||||
def build_main(argv=sys.argv[1:]): # type: ignore
|
||||
@ -311,4 +311,4 @@ def main(argv=sys.argv[1:]): # type: ignore
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv[1:]))
|
||||
sys.exit(main(sys.argv[1:])) # type: ignore
|
||||
|
@ -18,7 +18,9 @@ from sphinx.deprecation import RemovedInSphinx30Warning
|
||||
|
||||
if False:
|
||||
# For type annotation
|
||||
import argparse # NOQA
|
||||
from typing import Any, IO, List, Union # NOQA
|
||||
from sphinx.application import Sphinx # NOQA
|
||||
|
||||
|
||||
def handle_exception(app, args, exception, stderr=sys.stderr):
|
||||
@ -47,4 +49,3 @@ def main(argv=sys.argv[1:]): # type: ignore
|
||||
warnings.warn('sphinx.cmdline module is deprecated. Use sphinx.cmd.build instead.',
|
||||
RemovedInSphinx30Warning)
|
||||
return build.main(argv)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user