if issubclass( Form, CustomForm ): print('yeee') else: print('nope') # always here It seems that _tp_base_ of the inherited class is not set.