From 94141426e629effecc36a1e329d1ce7580c98ce7 Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Wed, 1 Jun 2022 18:38:13 +0100 Subject: [PATCH] Fix black error --- powerplan/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerplan/data.py b/powerplan/data.py index c264cdb..49c94ed 100644 --- a/powerplan/data.py +++ b/powerplan/data.py @@ -221,7 +221,7 @@ def cable_length_from_source(self, direction=None) -> Optional[Quantity]: cable_length_from_source = ipt.cable_length_from_source() if cable_length_from_source is None: return None - return cable_length_from_source + sum(attrs["cable_lengths"]) * ureg('meter') + return cable_length_from_source + sum(attrs["cable_lengths"]) * ureg("meter") def get_spec(self): return self.plan.spec.distro.get(self.type)