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

fix docs

parent bed7c82d
No related branches found
No related tags found
No related merge requests found
......@@ -357,11 +357,8 @@ def _get_descriptor_for(key: str, value: tp.Any) -> Descriptor:
else:
args = (import_class(cast_to),)
if 'expr' in value:
builtins = {
'y': args[0],
**__builtins__
}
args = eval('lambda x: ' + value['expr'], globals(), builtins),
y = args[0]
args = eval('lambda x: ' + value['expr'], globals(), locals()),
elif type_ == 'union':
args = [_get_descriptor_for('', x) for x in value.get('of', [])]
optional, default = False, None
......
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