예제 #1
0
 class Test:
     test_attr = DecimalDescriptor("test_attr")
예제 #2
0
 def contribute_to_class(self, cls, name):
     super().contribute_to_class(cls, name)
     setattr(cls, self.name, DecimalDescriptor(self.name))