[issue20897] @abstractmethod does not enforce method signatures
Claudiu.Popa
report at bugs.python.org
Tue Mar 18 14:54:05 CET 2014
Claudiu.Popa added the comment:
Hello. In 3.3 you can instantiate META class, because it does not properly say that it wants abc.ABCMeta as a metaclass. For this, you have to write your class as such:
class META(metaclass=abc.ABCMeta):
@abc.abstractmethod
def _junk(self):
...
----------
nosy: +Claudiu.Popa
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20897>
_______________________________________
More information about the Python-bugs-list
mailing list