File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -351,14 +351,14 @@ def _init_table(cls, sub_cls):
351
351
for k , v in updates .items ():
352
352
setattr (sub_cls , k , v )
353
353
354
- json_prop_names = []
354
+ json_prop_names = set ()
355
355
for each_cls in sub_cls .__mro__ [::- 1 ]:
356
356
for k , v in each_cls .__dict__ .items ():
357
357
if isinstance (v , json_support .JSONProperty ):
358
358
if not v .name :
359
359
v .name = k
360
360
if v .prop_name not in json_prop_names :
361
- json_prop_names .append (v .prop_name )
361
+ json_prop_names .add (v .prop_name )
362
362
json_col = getattr (
363
363
sub_cls .__dict__ .get (v .prop_name ), "column" , None
364
364
)
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def get_profile(self, instance):
55
55
props = type (instance ).__dict__
56
56
instance .__profile__ = {}
57
57
profiles = {}
58
- for prop_name in getattr (instance , "__json_prop_names__" , [] ):
58
+ for prop_name in getattr (instance , "__json_prop_names__" , set () ):
59
59
profiles .update (getattr (instance , prop_name , None ) or {})
60
60
for key , value in profiles .items ():
61
61
if key not in props :
You can’t perform that action at this time.
0 commit comments