summaryrefslogtreecommitdiff
path: root/pylint/checkers/spelling.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/spelling.py')
-rw-r--r--pylint/checkers/spelling.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py
index 8ba4df4d5..91161c60d 100644
--- a/pylint/checkers/spelling.py
+++ b/pylint/checkers/spelling.py
@@ -7,21 +7,15 @@
from __future__ import annotations
import re
-import sys
import tokenize
from re import Pattern
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING, Any, Literal
from astroid import nodes
from pylint.checkers import BaseTokenChecker
from pylint.checkers.utils import only_required_for_messages
-if sys.version_info >= (3, 8):
- from typing import Literal
-else:
- from typing_extensions import Literal
-
if TYPE_CHECKING:
from pylint.lint import PyLinter