Skip to content

FURB180 should consider allowlisting some classes #13307

@robsdedude

Description

@robsdedude

Please consider

import abc
from typing_extensions import Protocol


class Foo(Protocol, metclass=abc.ABCMeta):
    ...

Now this rule will re-write the class to class Foo(Protocol, abc.ABC): .... Well, that won't work at runtime :) Protocol checks that it only inherits from other Protocols.

Not sure what the fix is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions