void () { final PyFile file1 = getTestFile("dataclassField/a.py"); final PyFile file3 = getTestFile("dataclassField/b.py"); final DataclassFieldChecker checker = new DataclassFieldChecker(file1.findTopLevelClass("A")); checker.check("a", true, false, true); checker.check("b", false, true, true); checker.check("c", false, false, false); checker.check("d", false, false, true); checker.check("e", false, false, true); // fallback `init` value checker.check("f", false, false, true); // fallback `init` value checker.check("g", false, false, true); // fallback `init` value checker.check("h", false, false, true); checker.check("i", false, false, true); assertNotParsed(file1); assertNotParsed(file3); }