Given a class (in Python 3.8), how can I get a list of all the abstract base classes it implments? For example, given list, I'm looking for something that would return Container, Iterable, Collection, Sized, Sequence, etc.
inspect.getmro(), __mro__, and __bases__ will provide the parent classes, but they do not include the abstract base classes. So for list they only provide object (and list itself for the mro ones).
isinstance will tell if an object implements one single specific abstract base class, but not a list of all abstract base classes it implements.