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

unused-private-member bug #7204

Closed
socketpair opened this issue Jul 19, 2022 · 1 comment
Closed

unused-private-member bug #7204

socketpair opened this issue Jul 19, 2022 · 1 comment
Labels
Duplicate 🐫 Duplicate of an already existing issue Invalid Not a bug, already exists or already fixed

Comments

@socketpair
Copy link

socketpair commented Jul 19, 2022

Bug description

class SomeClass:
    def method(self):
        self.__clsmethod()

    @staticmethod
    def __staticmethod():
        pass

    @classmethod
    def __clsmethod(cls):
        cls.__staticmethod()

Configuration

No response

Command used

pylint a.py

Pylint output

W0238: Unused private member `SomeClass.__staticmethod()` (unused-private-member)

Expected behavior

no error

Pylint version

pylint 2.9.6

OS / Environment

No response

Additional dependencies

No response

@socketpair socketpair added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Jul 19, 2022
@Pierre-Sassoulas
Copy link
Member

Thank you for opening the issue.

I'm going to close as a duplicate of #4849. The issue has been fixed in latest pylint version (probably 2.11.0). 2.9.6 is very old, you should probably upgrade :)

@Pierre-Sassoulas Pierre-Sassoulas closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
@Pierre-Sassoulas Pierre-Sassoulas added Duplicate 🐫 Duplicate of an already existing issue Invalid Not a bug, already exists or already fixed and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Jul 19, 2022
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 Invalid Not a bug, already exists or already fixed
Projects
None yet
Development

No branches or pull requests

2 participants