summaryrefslogtreecommitdiff
path: root/pylint/checkers/base/docstring_checker.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/base/docstring_checker.py')
-rw-r--r--pylint/checkers/base/docstring_checker.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pylint/checkers/base/docstring_checker.py b/pylint/checkers/base/docstring_checker.py
index 5a681eeb3..91b3e7d4a 100644
--- a/pylint/checkers/base/docstring_checker.py
+++ b/pylint/checkers/base/docstring_checker.py
@@ -7,7 +7,7 @@
from __future__ import annotations
import re
-import sys
+from typing import Literal
import astroid
from astroid import nodes
@@ -21,11 +21,6 @@ from pylint.checkers.utils import (
is_property_setter,
)
-if sys.version_info >= (3, 8):
- from typing import Literal
-else:
- from typing_extensions import Literal
-
# do not require a doc string on private/system methods
NO_REQUIRED_DOC_RGX = re.compile("^_")