Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

Show 'redefinition of function' when using property.setter #12

@vstoykov

Description

@vstoykov

When in my code I have:

class Bar(object):
    @property
    def foo(self):
        return self._foo

    @foo.setter
    def foo(self, value):
        self._foo = value

This is absolutely valid python code but django lint tells me:

bar.py.XX: redefinition of function 'foo' from line XX

The info of django lint tells 'Django Lint is a wrapper around PyLint', but when I test this with pylint there is NO error like E:XXX,XX:Bar.foo: method already defined line XX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions