The SomeClass class has a custom metaclass. You will need to create a metaclass which inherits from both ABCMeta and this custom metaclass, then use it as the metaclass for MyClass. Without knowing more about this custom metaclass, I cannot determine a correct way to do this in the general case, but it will probably look like one of these possibilities:

class DerivedMeta(ABCMeta, type(SomeClass)):
    pass

class DerivedMeta(type(SomeClass), ABCMeta):
    pass

It's unlikely but possible you will also need to override one or more methods to ensure correct metaclass interactions.

Answer from Kevin on Stack Overflow
🌐
Python
docs.python.org › 3 › library › abc.html
abc — Abstract Base Classes
With this class, an abstract base class can be created by simply deriving from ABC avoiding sometimes confusing metaclass usage, for example: ... 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.
🌐
GeeksforGeeks
geeksforgeeks.org › python › multiple-inheritance-in-python
Multiple Inheritance in Python - GeeksforGeeks
The code demonstrates multiple inheritance where Class4 inherits from Class2 and Class3; calling obj.m() executes Class2’s method because, according to Python’s MRO, Class2 is checked before Class3.
Published   December 27, 2025
🌐
Medium
elfi-y.medium.com › inheritance-in-python-with-abstract-base-class-abc-5e3b8e910e5e
Inheritance in Python with Abstract Base Class(ABC) | by E.Y. | Medium
January 13, 2021 - Also, it’s just very difficult to manage inheritance relationship without proper subclassing anyway. For example, a Member and SupermarketStock class can both can len(). But they are not the same thing even if they implement the same methods. And that’s where Abstract Base Classes(ABC) come to rescue.
🌐
Pybites
pybit.es › articles › elevate-your-python-harnessing-the-power-of-abstract-base-classes-abcs
Elevate Your Python: Harnessing The Power Of Abstract Base Classes (ABCs) - Pybites
February 21, 2024 - Note: In the example above, we’ve used the ABCMeta metaclass directly for defining the abstract base class. However, Python provides a more modern and succinct way to achieve the same result using the ABC class from the abc module. Note that the type of ABC is still ABCMeta, therefore inheriting from ABC requires the usual precautions regarding metaclass usage, as multiple ...
🌐
Medium
medium.com › @pouyahallaj › introduction-1616b3a4a637
Python Protocols vs. ABCs: A Comprehensive Comparison of Interface Design | Medium
May 29, 2023 - To define an ABC in Python, you ... my_method(self): pass · In the example above, we define an ABC called MyABC that inherits from the ABC base class provided by the abc module....
🌐
Blogger
sayspy.blogspot.com › 2009 › 12 › how-to-handle-multiple-inheritance-of.html
Coder Who Says Py: How to handle multiple inheritance of ABCs that implement each others abstract methods
December 12, 2009 - Let's say I have two ABCs, NeedA and NeedB , that implement each others' abstract methods: class NeedA(metaclass=abc.ABCMeta): @abc.abs...
Find elsewhere
🌐
Duke
fintechpython.pages.oit.duke.edu › jupyternotebooks › 1-Core Python › answers › rq-26-answers.html
Core Python / Inheritance — Programming for Financial Technology
This example largely follows the same code from the first example, but with the Investment class declared as abstract. Importing ABC and abstractmethod: The ABC class from the abc module is used to define an abstract base class. The abstractmethod decorator is used to declare abstract methods. Defining the Abstract Class (Investment): The Investment class inherits ...
🌐
Programiz
programiz.com › python-programming › multiple-inheritance
Python Multiple Inheritance (With Examples)
In the above example, the Bat class is derived from two super classes: Mammal and WingedAnimal. Notice the statements, b1 = Bat() b1.mammal_info() b1.winged_animal_info() Here, we are using b1 (object of Bat) to access mammal_info() and winged_animal_info() methods of the Mammal and the ...
🌐
Python Course
python-course.eu › oop › the-abc-of-abstract-base-classes.php
20. The 'ABC' of Abstract Base Classes | OOP | python-course.eu
Like in other cases of "normal" inheritance, the abstract method can be invoked with super() call mechanism. This enables providing some basic functionality in the abstract method, which can be enriched by the subclass implementation. from abc import ABC, abstractmethod class AbstractClassExample(ABC): @abstractmethod def do_something(self): print("Some implementation!") class AnotherSubclass(AbstractClassExample): def do_something(self): super().do_something() print("The enrichment from AnotherSubclass") x = AnotherSubclass() x.do_something()
🌐
Mimo
mimo.org › glossary › python › inheritance
Python Inheritance: Syntax, Usage, and Examples
Understanding the MRO helps avoid surprises when using multi inheritance Python supports. This setup is one of the types of inheritance you’ll see discussed when people compare inheritance models across languages. Sometimes, you want to create a class that shouldn't be instantiated but should only serve as a blueprint. That’s where abstract base classes come in. ... from abc import ABC, abstractmethod class Shape(ABC): @abstractmethod def area(self): pass class Circle(Shape): def __init__(self, radius): self.radius = radius def area(self): return 3.14 * self.radius ** 2
🌐
Rip Tutorial
riptutorial.com › multiple inheritance
Python Language Tutorial => Multiple Inheritance
for below example only Foo class init method getting called Bar class init not getting called · class Foo(object): def __init__(self): print "foo init" class Bar(object): def __init__(self): print "bar init" class FooBar(Foo, Bar): def __init__(self): print "foobar init" super(FooBar, self).__init__() a = FooBar() ... But it doesn't mean that Bar class is not inherit.
🌐
GitHub
github.com › python › cpython › issues › 104797
Cannot use multiple inheritance with `collections.abc.Buffer` and `typing.Protocol` · Issue #104797 · python/cpython
February 28, 2023 - 3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error ... Various stdlib classes are treated as protocols by type checkers, but are actually ABCs at runtime (for performance reasons). Examples include contextlib.AbstractContextManager and collections.abc.Iterable. These classes are special-cased in typing.py to allow for multiple inheritance with typing.Protocol, so that the interface can be extended:
Published   May 23, 2023
Author   AlexWaygood
🌐
Python Course
python-course.eu › oop › multiple-inheritance.php
11. Multiple Inheritance | OOP | python-course.eu
March 24, 2024 - We want to introduce the principles of multiple inheritance with an example. For this purpose, we will implement to independent classes: a "Clock" and a "Calendar" class. After this, we will introduce a class "CalendarClock", which is, as the name implies, a combination of "Clock" and "Calendar".
🌐
CSDN
devpress.csdn.net › python › 630463867e6682346619ae97.html
python ABC & Multiple Inheritance_python_Mangs-Python
August 23, 2022 - I would like to know if it is possible ... can't find a statement one way or the other. ... from abc import ABC, abstractmethod class BaseABC(ABC): @abstractmethod def hello(self): pass class Child(BaseABC): pass child = Child()...
🌐
Real Python
realpython.com › inheritance-composition-python
Inheritance and Composition: A Python OOP Guide – Real Python
January 11, 2025 - The Employee class in the example above is what is called an abstract base class. Abstract base classes exist to be inherited, but never instantiated. Python provides the abc module to formally define abstract base classes.