"vscode:/vscode.git/clone" did not exist on "638120ca9b7478cb9af1c394e23172161dcfa710"
Commit eb3bd34c authored by ly015's avatar ly015 Committed by zhouzaida
Browse files

fix incorrect remapping of ellipsis

parent a7106c6b
......@@ -291,7 +291,13 @@ class KeyMapper(BaseTransform):
results.update(_map(d_i, m_i))
return results
if m is IgnoreKey:
# ``m is ...`` means the key is marked ignored, in which case the
# inner resuls will not affect the outer results in remapping.
# Another case that will have ``data is IgnoreKey`` is that the
# key is missing in the inputs. In this case, if the inner key is
# created by the wrapped transforms, it will be remapped to the
# corresponding outer key during remapping.
if m is ... or data is IgnoreKey:
return {}
return {m: data}
......
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