@@ -14,11 +14,18 @@ def from_fields(cls, fields: List):
1414class Attribution (Component ):
1515 def __init__ (self , values , base_values = None , units = None ):
1616 self .fields = locals ()
17- del self .fields [' self' ]
17+ del self .fields [" self" ]
1818
1919
2020class BinnedData (Component ):
21- def __init__ (self , data , data_counts = None , feature_names = None , feature_types = None , feature_indexes = None ):
21+ def __init__ (
22+ self ,
23+ data ,
24+ data_counts = None ,
25+ feature_names = None ,
26+ feature_types = None ,
27+ feature_indexes = None ,
28+ ):
2229 if not isinstance (feature_names , (Obj , Alias , type (None ))):
2330 feature_names = Alias (feature_names , 0 )
2431
@@ -29,11 +36,13 @@ def __init__(self, data, data_counts=None, feature_names=None, feature_types=Non
2936 feature_indexes = Alias (feature_indexes , 0 )
3037
3138 self .fields = locals ()
32- del self .fields [' self' ]
39+ del self .fields [" self" ]
3340
3441
3542class TabularData (Component ):
36- def __init__ (self , data , feature_names = None , feature_types = None , feature_indexes = None ):
43+ def __init__ (
44+ self , data , feature_names = None , feature_types = None , feature_indexes = None
45+ ):
3746 if not isinstance (feature_names , (Obj , Alias , type (None ))):
3847 feature_names = Alias (feature_names , 1 )
3948
@@ -44,31 +53,31 @@ def __init__(self, data, feature_names=None, feature_types=None, feature_indexes
4453 feature_indexes = Alias (feature_indexes , 1 )
4554
4655 self .fields = locals ()
47- del self .fields [' self' ]
56+ del self .fields [" self" ]
4857
4958
5059class Bound (Component ):
5160 def __init__ (self , lower_bounds , upper_bounds ):
5261 self .fields = locals ()
53- del self .fields [' self' ]
62+ del self .fields [" self" ]
5463
5564
5665# TODO: Consider separation of concerns for each field.
5766class Meta (Component ):
5867 def __init__ (self , source , pivots , dimension_names = None ):
5968 self .fields = locals ()
60- del self .fields [' self' ]
69+ del self .fields [" self" ]
6170
6271
6372class Extra (Component ):
6473 def __init__ (
65- self ,
66- display_data = None ,
67- output_names = None ,
68- output_indexes = None , # Alias?
69- main_effects = None ,
70- hierarchical_values = None ,
71- clustering = None ,
74+ self ,
75+ display_data = None ,
76+ output_names = None ,
77+ output_indexes = None , # Alias?
78+ main_effects = None ,
79+ hierarchical_values = None ,
80+ clustering = None ,
7281 ):
7382 self .fields = locals ()
74- del self .fields [' self' ]
83+ del self .fields [" self" ]
0 commit comments