summaryrefslogtreecommitdiff
path: root/sphinx/deprecation.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/deprecation.py')
-rw-r--r--sphinx/deprecation.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/sphinx/deprecation.py b/sphinx/deprecation.py
index 6f0fb2db4..77b462da8 100644
--- a/sphinx/deprecation.py
+++ b/sphinx/deprecation.py
@@ -11,22 +11,22 @@
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
+
+
+class RemovedInSphinx60Warning(PendingDeprecationWarning):
pass
-RemovedInNextVersionWarning = RemovedInSphinx40Warning
+RemovedInNextVersionWarning = RemovedInSphinx50Warning
def deprecated_alias(modname: str, objects: Dict, warning: "Type[Warning]") -> None: