(typ)
| 821 | # Remove entries which are strict bases of other entries (they will end up |
| 822 | # in the MRO anyway. |
| 823 | def is_strict_base(typ): |
| 824 | for other in types: |
| 825 | if typ != other and typ in other.__mro__: |
| 826 | return True |
| 827 | return False |
| 828 | types = [n for n in types if not is_strict_base(n)] |
| 829 | # Subclasses of the ABCs in *types* which are also implemented by |
| 830 | # *cls* can be used to stabilize ABC ordering. |