Commit 178320fc authored by Florent Cayré's avatar Florent Cayré
Browse files

Silent yams warning (first rdef selection from an ambiguous rtype)

parent 4d00bedef983
Pipeline #35934 passed with stage
in 2 minutes and 27 seconds
......@@ -1206,7 +1206,8 @@ def guess_field(eschema, rschema, role='subject', req=None, **kwargs):
though any value can be explicitly specified using `kwargs`.
fieldclass = None
rdef = eschema.rdef(rschema, role)
# We do not know how to use more than the first rdef of the given rschema:
rdef = eschema.rdef(rschema, role, takefirst=True)
if role == 'subject':
targetschema = rdef.object
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment