(typ)
| 746 | # Remove entries which are strict bases of other entries (they will end up |
| 747 | # in the MRO anyway. |
| 748 | def is_strict_base(typ): |
| 749 | for other in types: |
| 750 | if typ != other and typ in other.__mro__: |
| 751 | return True |
| 752 | return False |
| 753 | types = [n for n in types if not is_strict_base(n)] |
| 754 | # Subclasses of the ABCs in *types* which are also implemented by |
| 755 | # *cls* can be used to stabilize ABC ordering. |