From 2281d9a81a7a7468674b9a46e95610b4076aff9b Mon Sep 17 00:00:00 2001 From: Edward Burnell Date: Wed, 4 Mar 2020 15:32:19 -0800 Subject: [PATCH] lint --- gpkit/nomials/array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpkit/nomials/array.py b/gpkit/nomials/array.py index 7c7f5d058..b4e658aa0 100644 --- a/gpkit/nomials/array.py +++ b/gpkit/nomials/array.py @@ -95,7 +95,7 @@ def str_without(self, excluded=()): "Returns string without certain fields (such as 'lineage')." if self.ast: return self.parse_ast(excluded) - if hasattr(self, "key"): + if hasattr(self, "key"): # pylint: disable=no-member return self.key.str_without(excluded) if not self.shape: return try_str_without(self.flatten()[0], excluded) @@ -107,7 +107,7 @@ def str_without(self, excluded=()): def latex(self, excluded=()): "Returns latex representation without certain fields." units = self.latex_unitstr() if "units" not in excluded else "" - if hasattr(self, "key"): + if hasattr(self, "key"): # pylint: disable=no-member return self.key.latex(excluded) + units return np.ndarray.__str__(self)