I am using Pycharm to edit some code and get a strange error when creating an enum:
class Colour(Enum):
BLACK: "\u001b[30m"
RED: '\u001b[31m'
GREEN: '\u001b[32m'
OK: "987"
The quoted strings (except for "987") are underlined red and hovering the cursor shows the message:
Statement expected, found BAD_CHARACTER
Single or double quotes make no difference
What is the problem here?