You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Save the following into a file and run pylint over it:
class My(type):
@staticmethod
def test(args):
"""
Non-iterable value args is used in an iterating contextpylint(not-an-iterable)
"""
# \|/
for i in args:
print(i)
Current behavior
A not-an-iterable error is being emitted for correct code: a.py:4:17: E1133: Non-iterable value args is used in an iterating context (not-an-iterable)
Expected behavior
No error should be emitted
pylint --version output
pylint 2.3.1
astroid 2.2.5
The text was updated successfully, but these errors were encountered:
Hey @ifinik Thanks for creating an issue. Please respect the template for new issues which indicates that it should have a reproduction example, the error you are seeing, the version of pylint you are using and so on. This time I went ahead and changed the issue for you.
Steps to reproduce
Save the following into a file and run
pylint
over it:Current behavior
A
not-an-iterable
error is being emitted for correct code:a.py:4:17: E1133: Non-iterable value args is used in an iterating context (not-an-iterable)
Expected behavior
No error should be emitted
pylint --version output
pylint 2.3.1
astroid 2.2.5
The text was updated successfully, but these errors were encountered: