inspect.isabstract()

inspect.isabstract(object)[source]

Return true if the object is an abstract base class (ABC).