# HG changeset patch # User Thinker K.F. Li # Date 1297504512 -28800 # Node ID 4fdc998d3dc30261f1e3e4eef4f52f6b5e553452 # Parent e0400a2b7c35913283c788af7319944d70468c85 Fix issue of setting proxy for require for composition class diff -r e0400a2b7c35 -r 4fdc998d3dc3 pyink/trait.py --- a/pyink/trait.py Fri Feb 11 15:10:37 2011 +0800 +++ b/pyink/trait.py Sat Feb 12 17:55:12 2011 +0800 @@ -179,7 +179,7 @@ continue value = getattr(a_trait, attr) - if value == require: + if isinstance(value, require): continue attrname_cnts[attr] = attrname_cnts.setdefault(attr, 0) + 1