Skip to content
Snippets Groups Projects
Commit 1704fcec authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

copy builtins first

parent 30274cd9
No related branches found
No related tags found
No related merge requests found
......@@ -349,7 +349,7 @@ def _get_descriptor_for(key: str, value: tp.Any) -> Descriptor:
args = (of,)
elif type_ == 'caster':
cast_to = value.get('cast_to')
dict_to_look_in = globals()
dict_to_look_in = globals().copy()
dict_to_look_in.update(__builtins__)
dict_to_look_in.update(locals())
if cast_to in dict_to_look_in:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment