Rule Definition
Trailing whitespace left in source code is generally inocuous. There is a single exception in Python: if the line continuation backslash marker is followed by an unintentional space and a newline, then it is not interpreted as a line continuation. Besides this syntactic issue, non-meaningful differences in files might get registered because of trailing whitespace addition or removal. It is thus recommended to avoid trailing whitespaces in code.
Remediation
Most editors can be configurated to automatically remove trailing whitespace from code.
Reference
PEP-8
Related Technologies
Technical Criterion
Documentation - Style Conformity
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.