My question is what's the most conventional way of making the following line of code:
self.steps = [setpoint_and_hold_time.setpoint for setpoint_and_hold_time in program.setpoints_and_hold_times]
to 79 character columns or less?
Also, I assumed this line of code didn't need much background context, if it does please tell me and I'll edit in some classes that explain this line of code.
Thanks.
black will reformat as (PEP8 compliant and it is quite readable I think):
self.steps = [
setpoint_and_hold_time.setpoint
for setpoint_and_hold_time in program.setpoints_and_hold_times
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With