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

False Positive from dict-iter-method outside dict context #4174

Closed
tiagohonorato opened this issue Mar 2, 2021 · 1 comment
Closed

False Positive from dict-iter-method outside dict context #4174

tiagohonorato opened this issue Mar 2, 2021 · 1 comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code

Comments

@tiagohonorato
Copy link
Contributor

Steps to reproduce

Run the following with --py3k:

class Test():
    def iteritems(self):
        pass

test = Test()
test.iteritems()

Current behavior

W1620: Calling a dict.iter*() method (dict-iter-method)

Expected behavior

Only issue W1620 from dict instances.

pylint --version output

Result of pylint --version output:

pylint 2.6.0
astroid 2.4.2
Python 3.8.7 (default, Jan 20 2021, 00:00:00) 
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)]
@Pierre-Sassoulas
Copy link
Member

Won't do, we removed the python3 porting mode in 2.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Positive 🦟 A message is emitted but nothing is wrong with the code
Projects
None yet
Development

No branches or pull requests

2 participants