marrow / schema

A generic declarative schema system.
MIT License
6 stars 3 forks source link

Remove overridden attributes that are hardcoded from the subclass attribute list. #5

Closed amcgregor closed 10 years ago

amcgregor commented 10 years ago

Example problem case:

class Foo(Container):
    type = Attribute(default=str)

class Bar(Foo):
    type = unicode

Bar.__attributes__ == Foo.__attributes__

a = Bar(int)
a.type == int