From e8fde7f4513bd1ddb270330aae6b5a6b2645c310 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Thu, 13 Dec 2012 19:09:33 +0200 Subject: Issue #16049: add abc.ABC helper class. Patch by Bruno Dupuis. --- Lib/abc.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/abc.py') diff --git a/Lib/abc.py b/Lib/abc.py index 09778e8609..e807895da3 100644 --- a/Lib/abc.py +++ b/Lib/abc.py @@ -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 -- cgit v1.2.1