How do I check (at runtime) if one class is a subclass of another? November 6, 2022 by Tarik You can use issubclass() like this assert issubclass(suit, Suit).