diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2023-04-24 22:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 22:36:24 +0200 |
commit | 3ff19e4ca34fde316881d916f9df22d3104d6464 (patch) | |
tree | 22a51fd2384d9b1fe1f3fd005752155031dfd036 /pylint/utils/utils.py | |
parent | b36a6169069ad9694b63596eeaf2c95ce1c517f9 (diff) | |
download | pylint-git-3ff19e4ca34fde316881d916f9df22d3104d6464.tar.gz |
Drop support for Python 3.7 (#8609)
* Drop support for Python 3.7
* Update py-version + classifier
* Update functional tests
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 315811ebf..543d7cbb3 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -24,18 +24,23 @@ import tokenize import warnings from collections.abc import Sequence from io import BufferedReader, BytesIO -from typing import TYPE_CHECKING, Any, List, Pattern, TextIO, Tuple, TypeVar, Union +from typing import ( + TYPE_CHECKING, + Any, + List, + Literal, + Pattern, + TextIO, + Tuple, + TypeVar, + Union, +) from astroid import Module, modutils, nodes from pylint.constants import PY_EXTS from pylint.typing import OptionDict -if sys.version_info >= (3, 8): - from typing import Literal -else: - from typing_extensions import Literal - if TYPE_CHECKING: from pylint.lint import PyLinter |