summaryrefslogtreecommitdiff
path: root/sphinx/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/__init__.py')
-rw-r--r--sphinx/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/__init__.py b/sphinx/__init__.py
index e98d2cdf0..42cf99c70 100644
--- a/sphinx/__init__.py
+++ b/sphinx/__init__.py
@@ -21,6 +21,10 @@ from os import path
from .deprecation import RemovedInNextVersionWarning
+if False:
+ # For type annotation
+ from typing import List # NOQA
+
# by default, all DeprecationWarning under sphinx package will be emit.
# Users can avoid this by using environment variable: PYTHONWARNINGS=
if 'PYTHONWARNINGS' not in os.environ: