-
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Steps to reproduce
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