Skip to content

meta-class-abc-meta (FURB180) - fix does not check whether the class already extends ABC #17162

@DetachHead

Description

@DetachHead

Summary

before:

from abc import ABC, ABCMeta

class Foo(ABC, metaclass=ABCMeta): # error: FURB180
    ...

after applying the fix:

from abc import ABC, ABCMeta

class Foo(ABC, ABC):
    ...

playground

Version

0.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixesRelated to suggested fixes for violationshelp wantedContributions especially welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions