Leaklens

pydata__xarray-4629

merge(combine_attrs='override') does not copy attrs but instead references attrs from the first object

Verdict: the fix is stated in the issue (Tier A).

I believe the issue is with the line for combine_attrs == "override": `return variable_attrs[0]`. This should be changed to `return dict(variable_attrs[0])`, like it is for the other combine_attrs cases.

The text states the fix: “I believe the issue is with the line for combine_attrs == "override": `return variable_attrs[0]`. This should be changed to `return dict(variable_attrs[0])`, like it is…”

All SWE-bench Verified tasks · more pydata/xarray tasks · How the check works