Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In <2.8 pylint.__pkginfo__.numversion was a tuple, not a list #4405

Closed
Pierre-Sassoulas opened this issue Apr 26, 2021 · 0 comments · Fixed by #4407
Closed

In <2.8 pylint.__pkginfo__.numversion was a tuple, not a list #4405

Pierre-Sassoulas opened this issue Apr 26, 2021 · 0 comments · Fixed by #4407
Assignees
Milestone

Comments

@Pierre-Sassoulas
Copy link
Member

In <2.8 is was a tuple, not a list, see fbcb27a#diff-42df8bb8e2d7b0a18f0174dcb5f3c60b1cbca5a394c3c7f8c9b33c99fb6cda99L34

list causes the following TypeError in pylint-django (pylint-dev/pylint-django#323)

LOAD_CONFIGURATION_SUPPORTED = pylint.__pkginfo__.numversion >= (2, 3)
TypeError: '>=' not supported between instances of 'list' and 'tuple'

Originally posted by @michael-k in #4400 (comment)

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.8.2 milestone Apr 26, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title In <2.8 is was a tuple, not a list In <2.8 pylint.numversion was a tuple, not a list Apr 26, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title In <2.8 pylint.numversion was a tuple, not a list In <2.8 pylint.__pkginfo__.numversion was a tuple, not a list Apr 26, 2021
@Pierre-Sassoulas Pierre-Sassoulas self-assigned this Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant