class abc.ABC
A helper class that has ABCMeta
as its metaclass. With this class, an abstract base class can be created by simply deriving from ABC
, avoiding sometimes confusing metaclass usage.
Note that the type of ABC
is still ABCMeta
, therefore inheriting from ABC
requires the usual precautions regarding metaclass usage, as multiple inheritance may lead to metaclass conflicts.
New in version 3.4.
Please login to continue.