Skip to content

N805 False positive for class Meta(type(base)) #12736

@randolf-scholz

Description

@randolf-scholz
from typing import Protocol

class MyMeta(type):
    def __subclasscheck__(cls, other): ...  # ✅

class MyProtocolMeta(type(Protocol)):
    def __subclasscheck__(cls, other): ...  # ❌

https://play.ruff.rs/5573b0e2-fba5-47c1-bc69-a7e780324a86

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions