Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Suspicious state" when editing unterminated docstrings in Python #948
When you're editing a docstring without closing triple quotes in Python that's not immediately followed by EOF, then the following message pops up:
To reproduce: Just try and remove the ending triple quotes from the following:
def test(x, y): """ Here we have an unterminated docstring.""" x + y
This was produced in
Never mind, I can reproduce it. It appears that the
I'll fix this issue at some point, however,
Pull requests would be very welcome. @fice-t Would you give it a try?
Ah, I still use the default checkers. I'll have to get around to customizing them.
Anyway, I changed the
(= 2 (zero-or-more not-newline) "\n")
in the checker definition to
(>= 2 (zero-or-more not-newline) "\n")
and it seems to fix the issue. Is there a reason why