summaryrefslogtreecommitdiff
path: root/sphinx/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/cmdline.py')
-rw-r--r--sphinx/cmdline.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py
index fc578422f..00d269912 100644
--- a/sphinx/cmdline.py
+++ b/sphinx/cmdline.py
@@ -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)
-