Skip to content

Commit

Permalink
trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Nov 15, 2024
1 parent 15b7835 commit 3bfcd55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sympy/printing/pretty/stringpict.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,12 @@ def above(self, *args, align="c"):
baseline = len(string.splitlines()) - self.height() + self.baseline
return self.__class__(string, baseline)


def parens(self, left="(", right=")", ifascii_nougly=False):
"""Put parentheses around self.
Returns string, baseline arguments for stringPict.
left or right can be None or empty string which means 'no paren from
that side'
that side'.
"""

# TODO: Add a deprecation warning in favor of
Expand All @@ -310,10 +309,10 @@ def parens(self, left="(", right=")", ifascii_nougly=False):
res = res.right(rparen)

return "\n".join(res.picture), res.baseline

def parenthesis(self, left="(", right=")", ifascii_nougly=False):
"""Returns a new object of the same type than self,
sorrounded by parenthesis of the type specified by
sorrounded by parenthesis of the type specified by
the arguments `left` and `right`.
`left` or `right` can be None or empty string which means 'no paren from
Expand Down

0 comments on commit 3bfcd55

Please sign in to comment.