mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
PY-27604 Exclude instantiated metaclasses from ancestor types of a class
but properly take them into account in PyClassType#getMetaClassType(). This check was implemented there instead of PyClass#getMetaClassType() itself, since the former method already looks up for explicitly declared metaclasses in ancestors unlike PyClassImpl that considers only those specified directly in the class definition or its containing module. Moreover, there are actual usages that expects such behavior from PyClass#getMetaClassType(), e.g. PyAbstractClassInspection.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Meta(type):
|
||||
pass
|
||||
|
||||
|
||||
class Base(metaclass=Meta):
|
||||
pass
|
||||
|
||||
|
||||
class MyClass(Base):
|
||||
pass
|
||||
Reference in New Issue
Block a user