In the code below, the whitespace ahead of a and b contains tabs and spaces:
from pathlib import Path
def b():
Path("my_data.txt").write_text("""
a
b
""")
This raises "E101 Indentation contains mixed spaces and tabs", even though this is not indentation but the contents of a multiline string where the leading indentation is user data and not python code. We should ignore multiline strings for E101.