Skip to content

Commit

Permalink
Allow Group subclasses to have docstrings, fixing issue 10
Browse files Browse the repository at this point in the history
  • Loading branch information
gulopine committed Jul 18, 2007
1 parent 1a6e5cc commit a6780f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbsettings/group.py
Expand Up @@ -11,6 +11,7 @@ def __init__(cls, name, bases, attrs):
if not bases or bases == (object,):
return
attrs.pop('__module__', None)
attrs.pop('__doc__', None)
for attribute_name, attr in attrs.items():
if not isinstance(attr, Value):
raise TypeError('The type of %s (%s) is not a valid Value.' % (attribute_name, attr.__class__.__name__))
Expand Down

0 comments on commit a6780f4

Please sign in to comment.