.. _anomalous-backslash-in-string: anomalous-backslash-in-string / W1401 ===================================== **Message emitted:** Anomalous backslash in string: '%s'. String constant might be missing an r prefix. **Description:** *Used when a backslash is in a literal string but not as an escape.* **Correct code:** .. code-block:: python string = r"\z" string = "\n" **Problematic code:** .. code-block:: python string = "\z" # [anomalous-backslash-in-string] Created by ``string`` checker