Issue #16049: add abc.ABC helper class.

Patch by Bruno Dupuis.
This commit is contained in:
Andrew Svetlov 2012-12-13 19:09:33 +02:00
parent 174bc1e309
commit b67596d815
4 changed files with 36 additions and 4 deletions

View file

@ -226,3 +226,9 @@ class ABCMeta(type):
# No dice; update negative cache
cls._abc_negative_cache.add(subclass)
return False
class ABC(metaclass=ABCMeta):
"""Helper class that provides a standard way to create an ABC using
inheritance.
"""
pass