Skip to content

CLN: F-string formatting in pandas/_libs/*.pyx #29527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Nov 11, 2019
Prev Previous commit
added the \!r to the strings
  • Loading branch information
MomIsBestFriend committed Nov 10, 2019
commit 3534311a53c6d8d1134e9629cc53e2b11c55856e
2 changes: 1 addition & 1 deletion pandas/_libs/interval.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ cdef class Interval(IntervalMixin):

left, right = self._repr_base()
name = type(self).__name__
repr_str = f'{name}({left}, {right}, closed={self.closed})'
repr_str = f'{name}({left!r}, {right!r}, closed={self.closed!r})'
return repr_str

def __str__(self) -> str:
Expand Down