How about matching the test from `ModelBase.__new__`:

`if isinstance(base, ModelBase) and not (base.__name__ == 'NewBase' and base.__mro__ == (base, object):`