Skip to content

False positive: decorating an instance func raises bad-staticmethod-argument #5441

Open

Description

Bug description

image
it raise W0211: Static method with 'self' as first argument (bad-staticmethod-argument)

Configuration

No response

Command used

pylint a.py --extension-pkg-whitelist=cv2

Pylint output

W0211: Static method with 'self' as first argument (bad-staticmethod-argument)

Expected behavior

do not raise this

Pylint version

pylint 2.11.1
astroid 2.8.6
Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]

OS / Environment

No response

Additional dependencies

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    DecoratorsFalse Positive 🦟A message is emitted but nothing is wrong with the codeNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions