mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user