Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Mar 4, 2020
1 parent 2a5a695 commit 2281d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpkit/nomials/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit 2281d9a

Please sign in to comment.