You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, the curly braces around the 4 won't appear in the string anymore, secondly, it adds additional escape-backslashes in front of the already existing backslashes (probably beacuse it detects that qualifier_pattern is an r-string. I usually use r-strings for regex-patterns to prevent accidental string formatting, even if it is not needed in this example. Ideally, it shouldn't matter of course).
Sourcery Version
0.10.1.
Code editor or IDE name and version
Pycharm 2021.3.1
OS name and version
Windows
The text was updated successfully, but these errors were encountered:
Issue description or question
I'm currently writing a parser for a certain file format by using regexes. This is my code
on the line with
qualifier_pattern
, it suggests meAs soon as I apply, the code becomes
Firstly, the curly braces around the
4
won't appear in the string anymore, secondly, it adds additional escape-backslashes in front of the already existing backslashes (probably beacuse it detects thatqualifier_pattern
is an r-string. I usually use r-strings for regex-patterns to prevent accidental string formatting, even if it is not needed in this example. Ideally, it shouldn't matter of course).Sourcery Version
0.10.1.
Code editor or IDE name and version
Pycharm 2021.3.1
OS name and version
Windows
The text was updated successfully, but these errors were encountered: