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

N805: False positive with @abstractclassmethod #5307

Closed
mflova opened this issue Jun 22, 2023 · 1 comment · Fixed by #5315
Closed

N805: False positive with @abstractclassmethod #5307

mflova opened this issue Jun 22, 2023 · 1 comment · Fixed by #5315
Assignees
Labels
bug Something isn't working

Comments

@mflova
Copy link

mflova commented Jun 22, 2023

Using the latest release.

Minimal example:

from abc import ABC, abstractclassmethod

class Rule(ABC):
    @abstractclassmethod
    def check(cls) -> None:
        ...

It forces me to rename it to self because it is not able to detect the pressence of abstractclassmethod

This one seems to be deprecated since Python 3.3 so I am not sure if it makes sense to fix it

@mflova mflova closed this as completed Jun 22, 2023
@mflova mflova reopened this Jun 22, 2023
@charliermarsh
Copy link
Member

I think it's reasonable to fix this, even if deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants