示例#1
0
 class Foo(object):
     x = my_attr.ib(default=sentinel)
示例#2
0
 class Point2(object):
     z = my_attr.ib()
     y = my_attr.ib()
     x = my_attr.ib()
示例#3
0
 class Point1(object):
     x = my_attr.ib()
     y = my_attr.ib()
     z = my_attr.ib()
示例#4
0
 class Foo(object):
     bar = my_attr.ib(default=None)
示例#5
0
 class Foo(object):
     bar = my_attr.ib(None)
示例#6
0
 class foo(object):
     bar = my_attr.ib(3)