File tree Expand file tree Collapse file tree 4 files changed +2
-8
lines changed Expand file tree Collapse file tree 4 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -687,8 +687,7 @@ Method Args checker Messages
687
687
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
688
688
:positional-only-arguments-expected (E3102): *`%s()` got some positional-only arguments passed as keyword arguments: %s *
689
689
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.
692
691
:missing-timeout (W3101): *Missing timeout argument for method '%s' can cause your program to hang indefinitely *
693
692
Used when a method needs a 'timeout' parameter in order to avoid waiting for
694
693
a long time. If no timeout is specified explicitly the default value is used.
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ class MethodArgsChecker(BaseChecker):
41
41
"positional-only-arguments-expected" ,
42
42
"Emitted when positional-only arguments have been passed as keyword arguments. "
43
43
"Remove the keywords for the affected arguments in the function call." ,
44
- {"minversion" : (3 , 8 )},
45
44
),
46
45
}
47
46
options = (
Original file line number Diff line number Diff line change @@ -1817,10 +1817,7 @@ def is_sys_guard(node: nodes.If) -> bool:
1817
1817
"""Return True if IF stmt is a sys.version_info guard.
1818
1818
1819
1819
>>> 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
1824
1821
"""
1825
1822
if isinstance (node .test , nodes .Compare ):
1826
1823
value = node .test .left
Original file line number Diff line number Diff line change 14
14
from pylint .__pkginfo__ import __version__
15
15
from pylint .typing import MessageTypesFullName
16
16
17
- PY38_PLUS = sys .version_info [:2 ] >= (3 , 8 )
18
17
PY39_PLUS = sys .version_info [:2 ] >= (3 , 9 )
19
18
PY310_PLUS = sys .version_info [:2 ] >= (3 , 10 )
20
19
PY311_PLUS = sys .version_info [:2 ] >= (3 , 11 )
You can’t perform that action at this time.
0 commit comments