This project is mirrored from https://gitee.com/mirrors/intellij-community.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 10 Jan, 2018 3 commits
    • Mikhail Golubev's avatar
      PY-26850 Move enhanced ancestors-aware metaclass detection to PyClass · 5cb33a78
      Mikhail Golubev authored
      PyClassType#getMetaClassType() now just delegates to its implementation.
      
      Also, removed questionable getAncestorTypesWithMetaClassInstances()
      method from PyClass interface, make it solely an implementation detail
      of PyClassImpl.
      5cb33a78
    • Mikhail Golubev's avatar
      PY-27604 Exclude instantiated metaclasses from ancestor types of a class · 9348f92a
      Mikhail Golubev authored
      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.
      9348f92a
    • Mikhail Golubev's avatar
      PY-27656 PY-27604 Exclude ancestors of metaclasses from class hierarchy · d963a6a7
      Mikhail Golubev authored
      in case this relationship was created implicitly by inheriting an
      instance of metaclass.
      
      It also fixes warnings about the first parameter of SQLAlchemy model
      methods being named "self" instead of "cls" since we no longer consider
      these classes descendants of "type".
      d963a6a7
  2. 09 Jan, 2018 37 commits