PY-74176 Tweak activation of magic literals so they don't interfere with renaming symbols

(cherry picked from commit 69327fbc6680be176286f8fc3dc2aa89140d6c7d)

IJ-MR-146071

GitOrigin-RevId: 37da3ea34c760c7d61384d96616d746a0b731636
This commit is contained in:
Artem Ivanov
2024-10-18 16:06:16 +03:00
committed by intellij-monorepo-bot
parent 2103981df4
commit 0668846014
2 changed files with 1 additions and 5 deletions

View File

@@ -33,10 +33,6 @@ public final class PyMagicLiteralTools {
Arrays.stream(PyMagicLiteralExtensionPoint.EP_NAME.getExtensions()).anyMatch(o-> o.isEnabled(element));
}
public static boolean isMagicLiteral(@NotNull final PsiElement element) {
return (element instanceof StringLiteralExpression stringLiteralExpression) && getPoint(stringLiteralExpression) != null;
}
/**
* Gets extension point by literal.
*