mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't collect names in parameter default and annotation for visited function (PY-19599)
Because they are collected in the outer scope and outer scope is considered as their owner in ScopeUtil.getScopeOwner.
This commit is contained in:
+7
@@ -714,6 +714,13 @@ public class PyUnresolvedReferencesInspectionTest extends PyInspectionTestCase {
|
||||
" self.value = self.datetime(2016, 1, 1)");
|
||||
}
|
||||
|
||||
// PY-19599
|
||||
public void testDefinedInParameterDefaultAndBody() {
|
||||
doTestByText("def f(p=(x for x in [])):\n" +
|
||||
" x = 1\n" +
|
||||
" return x");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected Class<? extends PyInspection> getInspectionClass() {
|
||||
|
||||
Reference in New Issue
Block a user