@@ -43,10 +43,10 @@ def __init__(self, children=None, optionalArray=Component.UNDEFINED, optionalBoo
43
43
self ._prop_names = ['children' , 'optionalArray' , 'optionalBool' , 'optionalNumber' , 'optionalObject' , 'optionalString' , 'optionalNode' , 'optionalElement' , 'optionalEnum' , 'optionalUnion' , 'optionalArrayOf' , 'optionalObjectOf' , 'optionalObjectWithShapeAndNestedDescription' , 'optionalAny' , 'customProp' , 'customArrayProp' , 'data-*' , 'aria-*' , 'in' , 'id' ]
44
44
self ._type = 'Table'
45
45
self ._namespace = 'TableComponents'
46
- self ._valid_wildcard_attributes = ['data-' , 'aria-' ]
46
+ self ._valid_wildcard_attributes = ['data-' , 'aria-' ]
47
47
self .available_events = ['restyle' , 'relayout' , 'click' ]
48
48
self .available_properties = ['children' , 'optionalArray' , 'optionalBool' , 'optionalNumber' , 'optionalObject' , 'optionalString' , 'optionalNode' , 'optionalElement' , 'optionalEnum' , 'optionalUnion' , 'optionalArrayOf' , 'optionalObjectOf' , 'optionalObjectWithShapeAndNestedDescription' , 'optionalAny' , 'customProp' , 'customArrayProp' , 'data-*' , 'aria-*' , 'in' , 'id' ]
49
- self .available_wildcard_properties = ['data-' , 'aria-' ]
49
+ self .available_wildcard_properties = ['data-' , 'aria-' ]
50
50
51
51
_explicit_args = kwargs .pop ('_explicit_args' )
52
52
_locals = locals ()
@@ -58,26 +58,3 @@ def __init__(self, children=None, optionalArray=Component.UNDEFINED, optionalBoo
58
58
raise TypeError (
59
59
'Required argument `' + k + '` was not specified.' )
60
60
super (Table , self ).__init__ (children = children , ** args )
61
-
62
- def __repr__ (self ):
63
- if (any (getattr (self , c , None ) is not None
64
- for c in self ._prop_names
65
- if c is not self ._prop_names [0 ])
66
- or any (getattr (self , c , None ) is not None
67
- for c in self .__dict__ .keys ()
68
- if any (c .startswith (wc_attr )
69
- for wc_attr in self ._valid_wildcard_attributes ))):
70
- props_string = ', ' .join ([c + '=' + repr (getattr (self , c , None ))
71
- for c in self ._prop_names
72
- if getattr (self , c , None ) is not None ])
73
- wilds_string = ', ' .join ([c + '=' + repr (getattr (self , c , None ))
74
- for c in self .__dict__ .keys ()
75
- if any ([c .startswith (wc_attr )
76
- for wc_attr in
77
- self ._valid_wildcard_attributes ])])
78
- return ('Table(' + props_string +
79
- (', ' + wilds_string if wilds_string != '' else '' ) + ')' )
80
- else :
81
- return (
82
- 'Table(' +
83
- repr (getattr (self , self ._prop_names [0 ], None )) + ')' )
0 commit comments