Skip to content

Commit 79a7b1e

Browse files
Remove PY38_PLUS and related constants
1 parent 05a1950 commit 79a7b1e

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

doc/user_guide/checkers/features.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,7 @@ Method Args checker Messages
687687
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
688688
:positional-only-arguments-expected (E3102): *`%s()` got some positional-only arguments passed as keyword arguments: %s*
689689
Emitted when positional-only arguments have been passed as keyword arguments.
690-
Remove the keywords for the affected arguments in the function call. This
691-
message can't be emitted when using Python < 3.8.
690+
Remove the keywords for the affected arguments in the function call.
692691
:missing-timeout (W3101): *Missing timeout argument for method '%s' can cause your program to hang indefinitely*
693692
Used when a method needs a 'timeout' parameter in order to avoid waiting for
694693
a long time. If no timeout is specified explicitly the default value is used.

pylint/checkers/method_args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class MethodArgsChecker(BaseChecker):
4141
"positional-only-arguments-expected",
4242
"Emitted when positional-only arguments have been passed as keyword arguments. "
4343
"Remove the keywords for the affected arguments in the function call.",
44-
{"minversion": (3, 8)},
4544
),
4645
}
4746
options = (

pylint/checkers/utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,10 +1817,7 @@ def is_sys_guard(node: nodes.If) -> bool:
18171817
"""Return True if IF stmt is a sys.version_info guard.
18181818
18191819
>>> import sys
1820-
>>> if sys.version_info > (3, 8):
1821-
>>> from typing import Literal
1822-
>>> else:
1823-
>>> from typing_extensions import Literal
1820+
>>> from typing import Literal
18241821
"""
18251822
if isinstance(node.test, nodes.Compare):
18261823
value = node.test.left

pylint/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from pylint.__pkginfo__ import __version__
1515
from pylint.typing import MessageTypesFullName
1616

17-
PY38_PLUS = sys.version_info[:2] >= (3, 8)
1817
PY39_PLUS = sys.version_info[:2] >= (3, 9)
1918
PY310_PLUS = sys.version_info[:2] >= (3, 10)
2019
PY311_PLUS = sys.version_info[:2] >= (3, 11)

0 commit comments

Comments
 (0)