Commit 579ab80c authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[Black] Formatting sample.py

parent 8ad2db23
Pipeline #50746 failed with stage
in 6 minutes and 33 seconds
......@@ -21,7 +21,9 @@ def _copy_attributes(sample, parent, kwargs):
if key.startswith("_") or key in SAMPLE_DATA_ATTRS:
continue
# Prevent the assignment of delayed attributes when copying
if getattr(parent, "_delayed_attributes") is not None and key in getattr(parent, "_delayed_attributes"):
if getattr(parent, "_delayed_attributes") is not None and key in getattr(
parent, "_delayed_attributes"
):
setattr(sample, key, None)
continue
setattr(sample, key, getattr(parent, key))
......
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