I reduced the issue to the following minimal example:
"""Example"""
def answer():
"""Answer"""
return 42
Pylint doesn't give any "bad whitespace" warning:
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Pylint does give warnings for spaces in front of brackets and trailing whitespace or newlines and so on. Why are there no warnings in this case?