You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to PEP-8 on block styles, it merely says:
Block comments generally apply to some (or all) code that follows them, and are indented to the same level as that code.
The existing E115 is supposed to check this. However, the following test code does not trigger it:
classSomeBase:
passclassSomeClass(SomeBase):
defmethod(self, arg):
ifnotarg:
return"arg is false"# Will return true on truthyreturn"arg is true"
I think that should be caught. It does cause a problem with building documentation with Sphinx that includes source code snippets. The generated RST has the de-dented line signalling the end of the code block.
Thanks!
The text was updated successfully, but these errors were encountered:
According to PEP-8 on block styles, it merely says:
The existing E115 is supposed to check this. However, the following test code does not trigger it:
I think that should be caught. It does cause a problem with building documentation with Sphinx that includes source code snippets. The generated RST has the de-dented line signalling the end of the code block.
Thanks!
The text was updated successfully, but these errors were encountered: