Skip to content

Commit

Permalink
proper lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Mar 4, 2020
1 parent 2281d9a commit 7dff674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gpkit/nomials/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ 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"): # pylint: disable=no-member
return self.key.str_without(excluded)
if hasattr(self, "key"):
return self.key.str_without(excluded) # pylint: disable=no-member
if not self.shape:
return try_str_without(self.flatten()[0], excluded)

Expand All @@ -107,8 +107,8 @@ 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"): # pylint: disable=no-member
return self.key.latex(excluded) + units
if hasattr(self, "key"):
return self.key.latex(excluded) + units # pylint: disable=no-member
return np.ndarray.__str__(self)

def __hash__(self):
Expand Down

0 comments on commit 7dff674

Please sign in to comment.