I want to create some kind of structure, where the classes that inherit the ABC class can only have the methods that are defined in it and cannot have any other methods in it.
My abc looks like
from abc import ABCMeta, abstractmethod
class Meta(metaclass=ABCMeta):
@abstractmethod
async def Foo(self,a:int, b:str):
raise NotImplementedError
so the classes I make, which inherit this can only have the method Foo and nothing else more.
is this possible to do in python?