I have this line of code:
assert 0 <= j <= self.n, "First edge needs to be between 0 and {}".format(self.n)
I want pep8 to be happy, but I don't understand how to break this line. I tried breaking after the comma and got invalid syntax. I've tried breaking the string with additional ""'s as in How to break long string lines for PEP8 compliance?. PEP8 was happy but the assert only produced the first half of the message.
What is the proper way to break long assert strings?