summaryrefslogtreecommitdiff
path: root/sphinx/deprecation.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/deprecation.py')
-rw-r--r--sphinx/deprecation.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/sphinx/deprecation.py b/sphinx/deprecation.py
index 161d7bcac..1d602fa82 100644
--- a/sphinx/deprecation.py
+++ b/sphinx/deprecation.py
@@ -11,18 +11,14 @@
import sys
import warnings
from importlib import import_module
-from typing import Any, Dict
-
-if False:
- # For type annotation
- from typing import Type # for python3.5.1
+from typing import Any, Dict, Type
class RemovedInSphinx40Warning(DeprecationWarning):
pass
-class RemovedInSphinx50Warning(PendingDeprecationWarning):
+class RemovedInSphinx50Warning(DeprecationWarning):
pass
@@ -30,7 +26,7 @@ class RemovedInSphinx60Warning(PendingDeprecationWarning):
pass
-RemovedInNextVersionWarning = RemovedInSphinx40Warning
+RemovedInNextVersionWarning = RemovedInSphinx50Warning
def deprecated_alias(modname: str, objects: Dict[str, object],