Skip to content

Commit cef34cc

Browse files
Add more test cases with invalid python code
1 parent c91a14f commit cef34cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/functional/p/possible_forgotten_f_prefix.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
y = "This is a {var} used for formatting later"
1212
z = y.format(var="string")
1313

14+
g = "This is a {another_var} used for formatting later"
15+
h = y.format(another_var="string")
16+
17+
i = "This is {invalid /// python /// inside}"
18+
1419
examples = [var, var_two]
1520
x = f"This is an example with a list: {''.join(examples) + 'well...' }"
1621
x = "This is an example with a list: {''.join(examples) + 'well...' }" # [possible-forgotten-f-prefix]

0 commit comments

Comments
 (0)