PyFile:FStringTerminatedByQuoteOfNestedStringLiteralInFormatPart.py PyAssignmentStatement PyTargetExpression: s PsiElement(Py:IDENTIFIER)('s') PsiWhiteSpace(' ') PsiElement(Py:EQ)('=') PsiWhiteSpace(' ') PyStringLiteralExpression: {f"{42:{ PyFormattedStringNode PsiElement(Py:FSTRING_START)('f'') PyFStringFragment PsiElement(Py:FSTRING_FRAGMENT_START)('{') PyStringLiteralExpression: {42:{ PyFormattedStringNode PsiElement(Py:FSTRING_START)('f"') PyFStringFragment PsiElement(Py:FSTRING_FRAGMENT_START)('{') PyNumericLiteralExpression PsiElement(Py:INTEGER_LITERAL)('42') PyFStringFragmentFormatPart PsiElement(Py:FSTRING_FRAGMENT_FORMAT_START)(':') PyFStringFragment PsiElement(Py:FSTRING_FRAGMENT_START)('{') PsiErrorElement:expression expected PsiErrorElement:type conversion, : or } expected PsiErrorElement:" expected PsiElement(Py:FSTRING_END)(''') PsiErrorElement:End of statement expected PyExpressionStatement PyReferenceExpression: foo PsiElement(Py:IDENTIFIER)('foo') PsiErrorElement:End of statement expected PyExpressionStatement PyStringLiteralExpression: }}"} PsiElement(Py:SINGLE_QUOTED_STRING)(''}}"}'')