File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -171,14 +171,14 @@ def not_excluded(s):
171171 if prop not in from_props :
172172 continue
173173
174- prop_to_type = type (from_props [prop ])
175-
176- if isclass (prop_to_type ) and \
177- not issubclass (prop_to_type , Enum ) and \
178- prop_to_type is not type (None ) and \
179- not __builtins__ .get (type (from_props [prop ]).__name__ ):
180- self .map (from_props [prop ], key_to , allow_none = allow_none )
181- else :
174+ # prop_to_type = type(from_props[prop])
175+
176+ # if isclass(prop_to_type) and \
177+ # not issubclass(prop_to_type, Enum) and \
178+ # prop_to_type is not type(None) and \
179+ # not __builtins__.get(type(from_props[prop]).__name__):
180+ # self.map(from_props[prop], key_to, allow_none=allow_none)
181+ # else:
182182 setattr (inst , prop , from_props [prop ])
183183 # case when target attribute is not mapped (can be extended)
184184 else :
You can’t perform that action at this time.
0 commit comments