Illegal/unsupportet escape sequence

I'm running pycharm 2021.2
Python 3.9
running on Windows 10

var_re = lambda x: re.compile(fr"""
\{x}(?:
(?P<escaped>\{x}) |
(?P<named>[_a-zA-Z][_a-zA-Z0-9]*) |
(?:{{
(?P<braced>[_a-zA-Z][_a-zA-Z0-9]*)
(?:
(?::?-(?P<default>[^}}]+)) |
(?::?\?(?P<err>[^}}]+))
)?
}})
)
""", re.VERBOSE)

The error shows up at "\{x}".

It is not a problem because everything is running. I just noticed it and wanted to report it back.

1 comment
Comment actions Permalink

Hi, thank you for reporting, I've submitted a bug report for this https://youtrack.jetbrains.com/issue/PY-50033

0

Please sign in to leave a comment.