mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't propose to add methods or fields to builtin classes.
This commit is contained in:
@@ -300,7 +300,7 @@ public class PyUnresolvedReferencesInspection extends LocalInspectionTool {
|
||||
}
|
||||
if (qtype instanceof PyClassType) {
|
||||
PyClass cls = ((PyClassType)qtype).getPyClass();
|
||||
if (cls != null) {
|
||||
if (cls != null && ! PyBuiltinCache.hasInBuiltins(cls)) {
|
||||
if (reference.getElement().getParent() instanceof PyCallExpression) {
|
||||
actions.add(new AddMethodQuickFix(ref_text, cls));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user