anomalous-unicode-escape-in-string / W1402#

Message emitted:

Anomalous Unicode escape in byte string: '%s'. String constant might be missing an r or u prefix.

Description:

Used when an escape like u is encountered in a byte string where it has no effect.

Correct code:

print(b"\\u{0}".format("0394"))

Problematic code:

print(b"\u{0}".format("0394"))  # [anomalous-unicode-escape-in-string]

Created by the string checker.