We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On python 3.6.0, usage of pylint 2.8.2 results in an import warning to stdout.
N.B. typing.Counter was added in python 3.6.1, so this import probably needs to be wrapped in a TYPE_CHECKING guard.
typing.Counter
TYPE_CHECKING
(Yes, I know 3.6.0 is an old patch release. Still have it on some CI servers for unfortunate reasons.)
Given that this warning seems to be coming from register_plugins() in utils.py, it is probably reproducible with any input file.
register_plugins()
Printed message: Problem importing module strings.py: cannot import name 'Counter'
Problem importing module strings.py: cannot import name 'Counter'
No warning, and strings checker works as expected.
strings
Result of pylint --version output:
pylint --version
pylint 2.8.2 astroid 2.5.6 Python 3.6.0 (default, Jan 23 2017, 20:01:14) [MSC v.1900 64 bit (AMD64)]
The text was updated successfully, but these errors were encountered:
Happy to contribute a patch if you like.
Sorry, something went wrong.
Go for it! Tag me and I'll make sure to review it.
Had to search a bit, but it seams as this commit is the issue: link
context.clone
pkolbus
Successfully merging a pull request may close this issue.
On python 3.6.0, usage of pylint 2.8.2 results in an import warning to stdout.
N.B.
typing.Counter
was added in python 3.6.1, so this import probably needs to be wrapped in aTYPE_CHECKING
guard.(Yes, I know 3.6.0 is an old patch release. Still have it on some CI servers for unfortunate reasons.)
Steps to reproduce
Given that this warning seems to be coming from
register_plugins()
in utils.py, it is probably reproducible with any input file.Current behavior
Printed message:
Problem importing module strings.py: cannot import name 'Counter'
Expected behavior
No warning, and
strings
checker works as expected.pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: