Lines Matching refs:isinstance
45 if isinstance(node_or_string, str):
47 if isinstance(node_or_string, Expression):
50 if isinstance(node, Constant):
51 if isinstance(node.value, (int, float, complex)):
53 elif isinstance(node, Num):
57 if isinstance(node, UnaryOp) and isinstance(node.op, (UAdd, USub)):
59 if isinstance(node.op, UAdd):
65 if isinstance(node, Constant):
67 elif isinstance(node, (Str, Bytes)):
69 elif isinstance(node, Num):
71 elif isinstance(node, Tuple):
73 elif isinstance(node, List):
75 elif isinstance(node, Set):
77 elif isinstance(node, Dict):
80 elif isinstance(node, NameConstant):
82 elif isinstance(node, BinOp) and isinstance(node.op, (Add, Sub)):
85 if isinstance(left, (int, float)) and isinstance(right, complex):
86 if isinstance(node.op, Add):
104 if isinstance(node, AST):
116 elif isinstance(node, list):
119 if not isinstance(node, AST):
190 if isinstance(field, AST):
192 elif isinstance(field, list):
194 if isinstance(item, AST):
207 if not isinstance(node, (AsyncFunctionDef, FunctionDef, ClassDef, Module)):
209 if not(node.body and isinstance(node.body[0], Expr)):
212 if isinstance(node, Str):
214 elif isinstance(node, Constant) and isinstance(node.value, str):
267 if isinstance(value, list):
269 if isinstance(item, AST):
271 elif isinstance(value, AST):
313 if isinstance(old_value, list):
316 if isinstance(value, AST):
320 elif not isinstance(value, AST):
325 elif isinstance(old_value, AST):