Searched refs:type_comments (Results 1 – 10 of 10) sorted by relevance
/third_party/python/Parser/ |
D | tokenizer.h | 77 int type_comments; /* Whether to look for type comments */ member
|
D | tokenizer.c | 83 tok->type_comments = 0; in tok_new() 1501 if (tok->type_comments) { in tok_get()
|
D | pegen.c | 1232 tok->type_comments = (flags & PyPARSE_TYPE_COMMENTS) > 0; in _PyPegen_Parser_New()
|
/third_party/python/Lib/test/ |
D | test_type_comments.py | 228 return ast.parse(source, type_comments=True, 365 ast.parse(source, type_comments=False)
|
D | test_unparse.py | 392 self.check_ast_roundtrip(statement, type_comments=True) 407 self.check_ast_roundtrip(statement, type_comments=True)
|
/third_party/python/Doc/library/ |
D | token.rst | 77 ``type_comments=True``.
|
D | ast.rst | 1894 .. function:: parse(source, filename='<unknown>', mode='exec', *, type_comments=False, feature_vers… 1899 If ``type_comments=True`` is given, the parser is modified to check 1939 Added ``type_comments``, ``mode='func_type'`` and ``feature_version``.
|
/third_party/python/Lib/ |
D | ast.py | 34 type_comments=False, feature_version=None): argument 41 if type_comments: 1697 tree = parse(source, args.infile.name, args.mode, type_comments=args.no_type_comments)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.8.0b1.rst | 1026 When using `type_comments=True` in `ast.parse`, treat `# type: ignore`
|
/third_party/python/Doc/whatsnew/ |
D | 3.8.rst | 582 * ``type_comments=True`` causes it to return the text of :pep:`484` and
|