Trailing whitespace (W291)
There should be no whitespace after the final character in a line.
Anti-pattern
Note: The •
character represents a space.
def first_func():
# The line below has two spaces after its final character
pass••
There should be no whitespace after the final character in a line.
Note: The •
character represents a space.
def first_func():
# The line below has two spaces after its final character
pass••