(typ)
| 814 | bases = set(cls.__mro__) |
| 815 | # Remove entries which are already present in the __mro__ or unrelated. |
| 816 | def is_related(typ): |
| 817 | return (typ not in bases and hasattr(typ, '__mro__') |
| 818 | and not isinstance(typ, GenericAlias) |
| 819 | and issubclass(cls, typ)) |
| 820 | types = [n for n in types if is_related(n)] |
| 821 | # Remove entries which are strict bases of other entries (they will end up |
| 822 | # in the MRO anyway. |
no test coverage detected