mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Register problems on a correct local element (not in foreign file).
This commit is contained in:
@@ -87,8 +87,8 @@ public class PyStringFormatInspection extends PyInspection {
|
||||
if (a_type != null) {
|
||||
checkTypeCompatible(problemTarget, a_type.getName(), myFormatSpec.get(String.valueOf(i+1)));
|
||||
}
|
||||
return tuple_type.getElementCount();
|
||||
}
|
||||
return tuple_type.getElementCount();
|
||||
}
|
||||
else checkExpressionType(rightExpression, myFormatSpec.get("1"), problemTarget);
|
||||
}
|
||||
@@ -175,7 +175,7 @@ public class PyStringFormatInspection extends PyInspection {
|
||||
}
|
||||
for (String key : myUsedMappingKeys.keySet()) {
|
||||
if (!myUsedMappingKeys.get(key).booleanValue()) {
|
||||
registerProblem(rightExpression, PyBundle.message("INSP.key.$0.has.no.arg", key));
|
||||
registerProblem(problemTarget, PyBundle.message("INSP.key.$0.has.no.arg", key));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user