Ignore __slots__ when matching protocol members

__slots__ property is not considered to be a part of the protocol

GitOrigin-RevId: e7824e6d2f9012b2fb1f561601b42480a1ba97a1
This commit is contained in:
evgeny.bovykin
2025-09-02 13:32:36 +00:00
committed by intellij-monorepo-bot
parent cadd0b15df
commit 100ac7c2df
@@ -43,6 +43,7 @@ fun inspectProtocolSubclass(protocol: PyClassType, subclass: PyClassType, contex
val name = e.name ?: return@visitMembers true
when (name) {
PyNames.SLOTS -> return@visitMembers true // __slots__ in a protocol definition are not considered to be a part of the protocol
PyNames.CLASS_GETITEM -> return@visitMembers true
PyNames.CALL -> {
val types = subclass.getImplicitlyInvokedMethodTypes(null, resolveContext)