Add myTypeEvalContext dropped by mistake

This commit is contained in:
Valentina Kiryushkina
2017-05-15 14:37:56 +03:00
parent bfbd7b425e
commit 212ff34eb7
@@ -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;
}