mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Always use function parameter as type inference target in test data for PyTypeFromUsedAttributesTest
This commit is contained in:
@@ -191,8 +191,8 @@ public class PyTypeFromUsedAttributesTest extends PyTestCase {
|
||||
"class MySortable(object):\n" +
|
||||
" def sort(self):\n" +
|
||||
" pass\n" +
|
||||
"x = undefined()\n" +
|
||||
"x.sort()",
|
||||
"def f(x):\n" +
|
||||
" x.sort()",
|
||||
"list | MySortable | OtherClassA | OtherClassB | unknown");
|
||||
}
|
||||
|
||||
@@ -220,9 +220,8 @@ public class PyTypeFromUsedAttributesTest extends PyTestCase {
|
||||
" pass\n" +
|
||||
"class C5(C4):\n" +
|
||||
" attr = 'bottom'\n" +
|
||||
"x = undefined()\n" +
|
||||
"x.attr\n" +
|
||||
"x",
|
||||
"def f(x):\n" +
|
||||
" x.attr\n",
|
||||
"C1 | unknown");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user