Every line of 'expected indented blockpylance' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
1182 def test_under_indented(self): 1183 conf = 'indentation: {spaces: 2, indent-sequences: consistent}' 1184 self.check('---\n' 1185 'object:\n' 1186 ' val: 1\n' 1187 '...\n', conf, problem=(3, 2)) 1188 self.check('---\n' 1189 'object:\n' 1190 ' k1:\n' 1191 ' - a\n' 1192 '...\n', conf, problem=(4, 4)) 1193 self.check('---\n' 1194 'object:\n' 1195 ' k3:\n' 1196 ' - name: Unix\n' 1197 ' date: 1969\n' 1198 '...\n', conf, problem=(5, 6, 'syntax')) 1199 conf = 'indentation: {spaces: 4, indent-sequences: consistent}' 1200 self.check('---\n' 1201 'object:\n' 1202 ' val: 1\n' 1203 '...\n', conf, problem=(3, 4)) 1204 self.check('---\n' 1205 '- el1\n' 1206 '- el2:\n' 1207 ' - subel\n' 1208 '...\n', conf, problem=(4, 4)) 1209 self.check('---\n' 1210 'object:\n' 1211 ' k3:\n' 1212 ' - name: Linux\n' 1213 ' date: 1991\n' 1214 '...\n', conf, problem=(5, 10, 'syntax')) 1215 conf = 'indentation: {spaces: 2, indent-sequences: true}' 1216 self.check('---\n' 1217 'a:\n' 1218 '-\n' # empty list 1219 'b: c\n' 1220 '...\n', conf, problem=(3, 1)) 1221 conf = 'indentation: {spaces: 2, indent-sequences: consistent}' 1222 self.check('---\n' 1223 'a:\n' 1224 ' -\n' # empty list 1225 'b:\n' 1226 '-\n' 1227 'c: d\n' 1228 '...\n', conf, problem=(5, 1))