From a5d9ceb883b32813eeac98b2dfa658b2b8be797b Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Thu, 18 Nov 2021 19:57:13 +0200 Subject: [PATCH] EA-404126 Add diagnostic GitOrigin-RevId: 55e7c7e236287200b4d1f493be2bb8db5b764067 --- .../codeInsight/intentions/ImportToImportFromIntention.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java index 43c848a003e2..e73e894624c8 100644 --- a/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java +++ b/python/python-psi-impl/src/com/jetbrains/python/codeInsight/intentions/ImportToImportFromIntention.java @@ -132,7 +132,7 @@ public class ImportToImportFromIntention extends PyBaseIntentionAction { if (!FileModificationService.getInstance().preparePsiElementForWrite(elt)) { return; } - assert parentElt instanceof PyReferenceExpression; + assert parentElt instanceof PyReferenceExpression: parentElt.getClass(); final PyElement newReference = generator.createExpressionFromText(languageLevel, nameUsed); parentElt.replace(newReference); }