`class WithPropertyDecorator(object): @property def foo(self) return self._foo
@foo.setter def foo(self, value): self._foo = value
@foo.deleter def foo(self): del self._foo
class WithPropertyMethod(object): def get_foo(self): return self._foo
def set_foo(self, value): self._foo = value
def del_foo(self): del self._foo
foo = property(get_foo, set_foo, del_foo, “‘foo’ property.”)`
This rule verifies that single-line comments are not located at the ends of lines of code. The main idea behind this rule is that in order to be really readable, trailing comments would have to be properly written and formatted (correct alignment, no interference with the visual structure of the code, not too long to be visible) but most often, automatic code formatters would not handle this correctly: the code would end up less readable. Comments are far better placed on the previous empty line of code, where they will always be visible and properly formatted.