Searched refs:type_ignores (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython3/Parser/ |
D | parsetok.c | 223 growable_comment_array type_ignores; in parsetok() local 225 if (!growable_comment_array_init(&type_ignores, 10)) { in parsetok() 233 growable_comment_array_deallocate(&type_ignores); in parsetok() 306 if (!growable_comment_array_add(&type_ignores, tok->lineno, str)) { in parsetok() 363 for (i = 0; i < type_ignores.num_items; i++) { in parsetok() 364 int res = PyNode_AddChild(ch, TYPE_IGNORE, type_ignores.items[i].comment, in parsetok() 365 type_ignores.items[i].lineno, 0, in parsetok() 366 type_ignores.items[i].lineno, 0); in parsetok() 373 type_ignores.items[i].comment = NULL; in parsetok() 408 growable_comment_array_deallocate(&type_ignores); in parsetok()
|
D | Python.asdl | 6 mod = Module(stmt* body, type_ignore* type_ignores)
|
/external/python/cpython3/Doc/library/ |
D | ast.rst | 297 type_ignores=[]) 306 type_ignores=[]) 314 type_ignores=[]) 338 type_ignores=[]) 360 type_ignores=[]) 757 type_ignores=[]) 770 type_ignores=[]) 791 type_ignores=[]) 801 type_ignores=[]) 813 type_ignores=[]) [all …]
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | gast_util.py | 73 Module = functools.partial(gast.Module, type_ignores=None) # pylint:disable=invalid-name
|
/external/python/cpython3/Lib/test/ |
D | test_type_comments.py | 313 [(ti.lineno, ti.tag) for ti in tree.type_ignores], 323 self.assertEqual(tree.type_ignores, [])
|
/external/tensorflow/tensorflow/python/tpu/ |
D | tpu_test_wrapper.py | 181 new_ast = ast.Module(body=expr.body, type_ignores=[]) # pylint:disable=undefined-loop-variable
|
/external/python/cpython3/Parser/pegen/ |
D | pegen.c | 2111 asdl_seq *type_ignores = NULL; in _PyPegen_make_module() local 2115 type_ignores = _Py_asdl_seq_new(num, p->arena); in _PyPegen_make_module() 2116 if (type_ignores == NULL) { in _PyPegen_make_module() 2128 asdl_seq_SET(type_ignores, i, ti); in _PyPegen_make_module() 2131 return Module(a, type_ignores, p->arena); in _PyPegen_make_module()
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 57 asdl_seq *type_ignores; member 461 mod_ty _Py_Module(asdl_seq * body, asdl_seq * type_ignores, PyArena *arena);
|
/external/python/cpython3/Python/ |
D | Python-ast.c | 217 PyObject *type_ignores; member 462 Py_CLEAR(state->type_ignores); in _PyAST_Fini() 544 if ((state->type_ignores = PyUnicode_InternFromString("type_ignores")) == NULL) return 0; in init_identifiers() 1915 Module(asdl_seq * body, asdl_seq * type_ignores, PyArena *arena) in Module() argument 1923 p->v.Module.type_ignores = type_ignores; in Module() 3394 value = ast2obj_list(state, o->v.Module.type_ignores, in ast2obj_mod() 3397 if (PyObject_SetAttr(result, state->type_ignores, value) == -1) in ast2obj_mod() 4903 asdl_seq* type_ignores; in obj2ast_mod() local 4938 if (_PyObject_LookupAttr(obj, state->type_ignores, &tmp) < 0) { in obj2ast_mod() 4954 type_ignores = _Py_asdl_seq_new(len, arena); in obj2ast_mod() [all …]
|
D | ast.c | 768 asdl_seq *type_ignores = NULL; in PyAST_FromNodeObject() local 820 type_ignores = _Py_asdl_seq_new(num, arena); in PyAST_FromNodeObject() 821 if (!type_ignores) in PyAST_FromNodeObject() 831 asdl_seq_SET(type_ignores, i, ti); in PyAST_FromNodeObject() 834 res = Module(stmts, type_ignores, arena); in PyAST_FromNodeObject()
|
/external/python/cpython3/Lib/ |
D | ast.py | 814 for ignore in node.type_ignores
|
/external/python/cpython3/Tools/c-analyzer/ |
D | known.tsv | 1413 Python/Python-ast.c - PyId_type_ignores variable _Py_IDENTIFIER(type_ignores)
|