We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 468aa22 commit 01779dbCopy full SHA for 01779db
coverage/phystokens.py
@@ -69,6 +69,9 @@ def _phys_tokens(toks: TokenInfos) -> TokenInfos:
69
# It's a multi-line string and the first line ends with
70
# a backslash, so we don't need to inject another.
71
inject_backslash = False
72
+ elif sys.version_info >= (3, 12) and ttype == token.FSTRING_MIDDLE:
73
+ if ttext.split("\n", 1)[0][-1] == "\\":
74
+ inject_backslash = False
75
if inject_backslash:
76
# Figure out what column the backslash is in.
77
ccol = len(last_line.split("\n")[-2]) - 1
0 commit comments