Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Oct 17, 2021
1 parent a1633b0 commit c5ce8dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@


class PylintIncompatiblePythonError(Exception):
def __init__(self, version_info: "sys._version_info") -> None:
def __init__(self, version_info: "sys._version_info" = sys.version_info) -> None:
super().__init__(
"The last version compatible with Python <= 3.6.2 is pylint '2.9.3'. "
f"You're using {'.'.join(map(str, version_info[:3]))}. "
f"You're using {'.'.join([str(v) for v in version_info[:3]])}. "
"Please install pylint 2.9.3 explicitly or upgrade your python interpreter "
"to at least 3.6.2. Remember that Python 3.6 end life is December 2021. "
"See https://github.com/PyCQA/pylint/issues/5065 for more detail."
)


if sys.version_info < (3, 6, 2):
raise PylintIncompatiblePythonError(sys.version_info)
raise PylintIncompatiblePythonError()

setup()

0 comments on commit c5ce8dc

Please sign in to comment.