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 unused-private-member on static members #4682

Closed
EugeneZelenko opened this issue Jul 7, 2021 · 2 comments
Closed

False positive unused-private-member on static members #4682

EugeneZelenko opened this issue Jul 7, 2021 · 2 comments
Labels
Duplicate 🐫 Duplicate of an already existing issue

Comments

@EugeneZelenko
Copy link

Hi!

As of e4cd2ef, unused-private-member reports false positives for static members used in static methods:

class Test():

    __state = False

    @staticmethod
    def method():
        if not Test.__state:
            Test.__state = True
@yushao2
Copy link
Collaborator

yushao2 commented Jul 7, 2021

This seems like a duplicate of #4681, which was opened by @cdce8p

cmiiw

@yushao2 yushao2 added the Duplicate 🐫 Duplicate of an already existing issue label Jul 7, 2021
@EugeneZelenko
Copy link
Author

Duplicate of #4681.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐫 Duplicate of an already existing issue
Projects
None yet
Development

No branches or pull requests

2 participants