From 212ff34eb7b348538b99212993bdd3f45545d4d7 Mon Sep 17 00:00:00 2001 From: Valentina Kiryushkina Date: Wed, 26 Apr 2017 20:04:40 +0300 Subject: [PATCH] Add myTypeEvalContext dropped by mistake --- .../jetbrains/python/inspections/PyStringFormatInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java b/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java index 1cc8a453867a..bfc88ba1425a 100644 --- a/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java +++ b/python/src/com/jetbrains/python/inspections/PyStringFormatInspection.java @@ -425,7 +425,7 @@ public class PyStringFormatInspection extends PyInspection { else { final PyClassType type = as(myTypeEvalContext.getType(rightExpression), PyClassType.class); if (type != null) { - if (myUsedMappingKeys.size() > 0 && !PyABCUtil.isSubclass(type.getPyClass(), PyNames.MAPPING, null)) { + if (myUsedMappingKeys.size() > 0 && !PyABCUtil.isSubclass(type.getPyClass(), PyNames.MAPPING, myTypeEvalContext)) { registerProblem(rightExpression, PyBundle.message("INSP.format.requires.mapping")); return; }