Files
openide/python/testData/completion/fStringLikeCompletionNotAvailableInStringElementsInSyntacticallyIllegalPosition.py
Mikhail Golubev fadb131582 EA-232631 Disable f-string-like completion in strings nodes outside of a string literal
String nodes are recognized by the lexer and, thus, can still appear even in
syntactic contexts where an expression is not expected. In these cases the parser
might wrap them in a PsiErrorElement instead of a PyStringLiteralExpression causing
the reported CCE.

GitOrigin-RevId: 161d88d6307e028ede462f707f01320df2169747
2020-06-30 18:29:22 +00:00

2 lines
31 B
Python

my_expr = 42
def '{my_e<caret>'