File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
6
6
class PylintIncompatiblePythonError (Exception ):
7
- def __init__ (self , version_info : "sys._version_info" ) -> None :
7
+ def __init__ (self , version_info : "sys._version_info" = sys . version_info ) -> None :
8
8
super ().__init__ (
9
9
"The last version compatible with Python <= 3.6.2 is pylint '2.9.3'. "
10
- f"You're using { '.' .join (map ( str , version_info [:3 ]) )} . "
10
+ f"You're using { '.' .join ([ str ( v ) for v in version_info [:3 ]] )} . "
11
11
"Please install pylint 2.9.3 explicitly or upgrade your python interpreter "
12
12
"to at least 3.6.2. Remember that Python 3.6 end life is December 2021. "
13
13
"See https://github.com/PyCQA/pylint/issues/5065 for more detail."
14
14
)
15
15
16
16
17
17
if sys .version_info < (3 , 6 , 2 ):
18
- raise PylintIncompatiblePythonError (sys . version_info )
18
+ raise PylintIncompatiblePythonError ()
19
19
20
20
setup ()
You can’t perform that action at this time.
0 commit comments