Files
openide/python/testData/refactoring/rename/referencesInsideFStringsNotReportedAsStringOccurrences.py
Mikhail Golubev ec759879d4 PY-27749 Return tokens composing literal f-string parts in getStringLiteralElements()
instead of the whole STRING_LITERAL_EXPRESSION as it's expected to
return tokens instead of composite AST nodes, and, otherwise, real
expressions embedded inside f-strings get caught as string occurrences.

GitOrigin-RevId: 5625b7c3ba9aac37dc047c6d876df80de0a4ab31
2019-06-16 07:03:10 +03:00

3 lines
48 B
Python

def func():
v<caret>ar = 42
s = f'{var}'