/third_party/libinput/tools/ |
D | libinput-record-verify-yaml.py | 66 or isinstance(filter, list) 78 self.assertTrue(isinstance(version, int)) 83 self.assertTrue(isinstance(ndevices, int)) 90 self.assertTrue(isinstance(version, str)) 93 self.assertTrue(isinstance(git, str)) 99 self.assertTrue(isinstance(kernel, str)) 103 self.assertTrue(isinstance(dmi, str)) 128 self.assertTrue(isinstance(name, str)) 136 self.assertTrue(isinstance(id, list)) 146 self.assertTrue(isinstance(properties, list)) [all …]
|
/third_party/python/Lib/test/ |
D | test_isinstance.py | 39 self.assertEqual(False, isinstance(I(), C())) 59 self.assertRaises(RuntimeError, isinstance, I(), C()) 71 self.assertRaises(RuntimeError, isinstance, I(), C()) 83 self.assertRaises(TypeError, isinstance, I(), C()) 94 self.assertRaises(RuntimeError, isinstance, c, bool) 98 self.assertRaises(RuntimeError, isinstance, c, D) 193 self.assertEqual(True, isinstance(Super(), Super)) 194 self.assertEqual(False, isinstance(Super(), Child)) 195 self.assertEqual(False, isinstance(Super(), AbstractSuper)) 196 self.assertEqual(False, isinstance(Super(), AbstractChild)) [all …]
|
D | test_typechecks.py | 40 self.assertEqual(isinstance(42, Integer), True) 41 self.assertEqual(isinstance(42, (Integer,)), True) 42 self.assertEqual(isinstance(3.14, Integer), False) 43 self.assertEqual(isinstance(3.14, (Integer,)), False) 46 self.assertEqual(isinstance(Integer(), Integer), True) 47 self.assertEqual(isinstance(Integer(), (Integer,)), True) 62 self.assertEqual(isinstance(SubInt(), Integer), True) 63 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 64 self.assertEqual(isinstance(SubInt(), SubInt), True) 65 self.assertEqual(isinstance(SubInt(), (SubInt,)), True) [all …]
|
D | test___future__.py | 15 if obj is not None and isinstance(obj, __future__._Feature): 34 a(isinstance(t, tuple), "%s isn't tuple" % name) 37 a(isinstance(major, int), "%s major isn't int" % name) 38 a(isinstance(minor, int), "%s minor isn't int" % name) 39 a(isinstance(micro, int), "%s micro isn't int" % name) 40 a(isinstance(level, str), 44 a(isinstance(serial, int), "%s serial isn't int" % name) 56 a(isinstance(getattr(value, "compiler_flag"), int),
|
/third_party/python/Lib/json/ |
D | encoder.py | 191 if isinstance(o, str): 200 if not isinstance(chunks, (list, tuple)): 267 isinstance=isinstance, argument 274 if _indent is not None and not isinstance(_indent, str): 301 if isinstance(value, str): 309 elif isinstance(value, int): 314 elif isinstance(value, float): 319 if isinstance(value, (list, tuple)): 321 elif isinstance(value, dict): 357 if isinstance(key, str): [all …]
|
/third_party/vk-gl-cts/modules/gles2/scripts/ |
D | genutil.py | 53 if isinstance(case, CaseGroup): 222 def isEqual(self, other): assert isinstance(other, Scalar); return (self.x == other.x) 241 if isinstance(self.x, bool): 243 elif isinstance(self.x, int): 245 elif isinstance(self.x, float): 260 assert isinstance(v, Scalar) 264 assert isinstance(v, Scalar) 274 assert isinstance(val, Scalar) 281 if isinstance(val, Scalar): 283 elif isinstance(val, Vec2): [all …]
|
/third_party/cef/tools/yapf/yapf/yapflib/ |
D | subtype_assigner.py | 96 (isinstance(child, pytree.Node) or 111 if isinstance(child, pytree.Leaf) and child.value == '=': 118 if isinstance(child, pytree.Leaf) and child.value == 'or': 125 if isinstance(child, pytree.Leaf) and child.value == 'and': 132 if isinstance(child, pytree.Leaf) and child.value == 'not': 140 if (isinstance(child, pytree.Leaf) and 151 if isinstance(child, pytree.Leaf) and child.value == '*': 158 if isinstance(child, pytree.Leaf) and child.value == '|': 165 if isinstance(child, pytree.Leaf) and child.value == '^': 172 if isinstance(child, pytree.Leaf) and child.value == '&': [all …]
|
/third_party/vk-gl-cts/modules/gles31/scripts/ |
D | genutil.py | 53 if isinstance(case, CaseGroup): 235 def isEqual(self, other): assert isinstance(other, Scalar); return (self.x == other.x) 264 if isinstance(self.x, bool): 266 elif isinstance(self.x, int): 268 elif isinstance(self.x, float): 286 assert isinstance(v, Scalar) 290 assert isinstance(v, Scalar) 297 if isinstance(self.x, bool): 306 if not isinstance(val, Scalar): 308 assert isinstance(val, Scalar) [all …]
|
/third_party/vk-gl-cts/modules/gles3/scripts/ |
D | genutil.py | 53 if isinstance(case, CaseGroup): 235 def isEqual(self, other): assert isinstance(other, Scalar); return (self.x == other.x) 264 if isinstance(self.x, bool): 266 elif isinstance(self.x, int): 268 elif isinstance(self.x, float): 286 assert isinstance(v, Scalar) 290 assert isinstance(v, Scalar) 297 if isinstance(self.x, bool): 306 assert isinstance(val, Scalar) 313 if isinstance(val, Scalar): [all …]
|
/third_party/python/Tools/peg_generator/scripts/ |
D | grammar_grapher.py | 56 if isinstance(item, Alt): 58 elif isinstance(item, Cut): 60 elif isinstance(item, Group): 62 elif isinstance(item, Lookahead): 64 elif isinstance(item, NamedItem): 68 elif isinstance(item, NameLeaf): 72 elif isinstance(item, Leaf): 75 elif isinstance(item, Opt): 77 elif isinstance(item, Repeat): 79 elif isinstance(item, Rhs): [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_algebraic.py | 109 if isinstance(val, tuple): 112 assert(isinstance(val, SearchExpression)) 124 if isinstance(val, bytes): 127 if isinstance(val, tuple) or isinstance(val, SearchExpression): 129 elif isinstance(val, Expression): 131 elif isinstance(val, str): 133 elif isinstance(val, (bool, float, int)): 155 while isinstance(bit_size, Value): 171 other_bit_size = other if isinstance(other, int) else other.get_bit_size() 185 if isinstance(bit_size, int): [all …]
|
/third_party/python/Lib/ |
D | datetime.py | 362 if name is not None and not isinstance(name, str): 376 if not isinstance(offset, timedelta): 415 if tz is not None and not isinstance(tz, tzinfo): 484 if isinstance(days, float): 494 assert isinstance(daysecondsfrac, float) 496 assert isinstance(d, int) 500 if isinstance(seconds, float): 509 assert isinstance(secondsfrac, float) 512 assert isinstance(seconds, int) 516 assert isinstance(s, int) [all …]
|
D | typing.py | 141 if isinstance(arg, str): 165 if (isinstance(arg, _GenericAlias) and 170 if isinstance(arg, _SpecialForm) or arg in (Generic, Protocol): 172 if isinstance(arg, (type, TypeVar, ForwardRef, types.UnionType, ParamSpec)): 180 return arg is ... or isinstance(arg, 192 if isinstance(obj, types.GenericAlias): 194 if isinstance(obj, type): 200 if isinstance(obj, types.FunctionType): 215 if isinstance(t, typevar_types) and t not in tvars: 217 if isinstance(t, (_GenericAlias, GenericAlias, types.UnionType)): [all …]
|
D | fractions.py | 101 elif isinstance(numerator, numbers.Rational): 106 elif isinstance(numerator, (float, Decimal)): 111 elif isinstance(numerator, str): 145 elif (isinstance(numerator, numbers.Rational) and 146 isinstance(denominator, numbers.Rational)): 174 if isinstance(f, numbers.Integral): 176 elif not isinstance(f, float): 185 if isinstance(dec, numbers.Integral): 187 elif not isinstance(dec, Decimal): 357 if isinstance(b, (int, Fraction)): [all …]
|
D | plistlib.py | 70 if not isinstance(data, int): 88 if not isinstance(other, UID): 122 if isinstance(s, str): 202 if not isinstance(self.stack[-1], type({})): 211 if not isinstance(self.stack[-1], type([])): 235 if self.current_key or not isinstance(self.stack[-1], type({})): 305 if isinstance(line, str): 329 if isinstance(value, str): 338 elif isinstance(value, int): 344 elif isinstance(value, float): [all …]
|
D | ast.py | 43 if isinstance(feature_version, tuple): 61 if isinstance(node_or_string, str): 63 if isinstance(node_or_string, Expression): 71 if not isinstance(node, Constant) or type(node.value) not in (int, float, complex): 75 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)): 77 if isinstance(node.op, UAdd): 83 if isinstance(node, Constant): 85 elif isinstance(node, Tuple): 87 elif isinstance(node, List): 89 elif isinstance(node, Set): [all …]
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | meta.py | 77 if not isinstance(node.template, nodes.Const): 79 if isinstance(node.template, (nodes.Tuple, nodes.List)): 83 if isinstance(template_name, nodes.Const): 84 if isinstance(template_name.value, string_types): 94 if isinstance(node.template.value, string_types): 99 elif isinstance(node, nodes.Include) and \ 100 isinstance(node.template.value, (tuple, list)): 102 if isinstance(template_name, string_types):
|
/third_party/skia/third_party/externals/jinja2/ |
D | meta.py | 71 if not isinstance(node.template, nodes.Const): 73 if isinstance(node.template, (nodes.Tuple, nodes.List)): 77 if isinstance(template_name, nodes.Const): 78 if isinstance(template_name.value, string_types): 88 if isinstance(node.template.value, string_types): 93 elif isinstance(node, nodes.Include) and isinstance( 97 if isinstance(template_name, string_types):
|
/third_party/python/Lib/collections/ |
D | __init__.py | 289 if isinstance(other, OrderedDict): 298 if not isinstance(other, dict): 305 if not isinstance(other, dict): 354 if isinstance(field_names, str): 661 if isinstance(iterable, _collections_abc.Mapping): 692 if isinstance(iterable, _collections_abc.Mapping): 715 if not isinstance(other, Counter): 721 if not isinstance(other, Counter): 727 if not isinstance(other, Counter): 733 if not isinstance(other, Counter): [all …]
|
/third_party/jinja2/ |
D | meta.py | 81 if not isinstance(template, nodes.Const): 83 if isinstance(template, (nodes.Tuple, nodes.List)): 87 if isinstance(template_name, nodes.Const): 88 if isinstance(template_name.value, str): 98 if isinstance(template.value, str): 103 elif isinstance(node, nodes.Include) and isinstance( 107 if isinstance(template_name, str):
|
/third_party/mesa3d/bin/ |
D | meson-options.py | 23 if isinstance(value, coredata.UserStringOption): 28 elif isinstance(value, coredata.UserBooleanOption): 33 elif isinstance(value, coredata.UserIntegerOption): 38 elif isinstance(value, coredata.UserUmaskOption): 43 elif isinstance(value, coredata.UserComboOption): 49 elif isinstance(value, coredata.UserArrayOption): 56 elif isinstance(value, coredata.UserFeatureOption):
|
/third_party/python/Tools/c-analyzer/c_analyzer/ |
D | info.py | 36 if isinstance(raw, HighlevelParsedItem): 43 if isinstance(raw, cls): 57 if isinstance(resolved, TypeDeclaration): 79 if isinstance(typedeps, TypeDeclaration): 87 elif any(not isinstance(td, TypeDeclaration) for td in typedeps): 97 if isinstance(typedecl, TypeDeclaration): 105 elif typedecl and not isinstance(typedecl, TypeDeclaration): 120 if not isinstance(item, HighlevelParsedItem): 148 if isinstance(other, Analyzed): 150 elif isinstance(other, HighlevelParsedItem): [all …]
|
/third_party/spirv-tools/test/tools/ |
D | placeholder.py | 64 assert isinstance(source, str) 65 assert isinstance(suffix, str) 95 assert isinstance(content, str) 96 assert isinstance(suffix, str) 123 assert isinstance(source, str) 124 assert isinstance(suffix, str) 166 assert isinstance(source, str) 185 assert isinstance(filename, str) 205 assert isinstance(filename, str)
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/tools/ |
D | placeholder.py | 64 assert isinstance(source, str) 65 assert isinstance(suffix, str) 95 assert isinstance(content, str) 96 assert isinstance(suffix, str) 123 assert isinstance(source, str) 124 assert isinstance(suffix, str) 166 assert isinstance(source, str) 185 assert isinstance(filename, str) 205 assert isinstance(filename, str)
|
/third_party/mesa3d/src/util/perf/ |
D | u_trace.py | 49 assert isinstance(name, str) 50 assert isinstance(args, list) 87 assert isinstance(type, str) 88 assert isinstance(var, str) 107 assert isinstance(type, str) 108 assert isinstance(var, str) 109 assert isinstance(c_format, str) 134 assert isinstance(hdr, str) 147 assert isinstance(decl, str)
|