Skip to content

Commit 8a165bd

Browse files
author
Renan Chagas
committed
rollback recursive mapping
1 parent 9d8c57f commit 8a165bd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mapper/object_mapper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)