Make abc.ABC a regular class by making __instancecheck__ and __subclasscheck__ class methods

  • Protocols still have a metaclass
  • Protocols imply structural subtyping, which isn’t applicable to quite a few usecases of ABCs (see this post)
4 Likes