Home
last modified time | relevance | path

Searched refs:type_comments (Results 1 – 10 of 10) sorted by relevance

/third_party/python/Parser/
Dtokenizer.h77 int type_comments; /* Whether to look for type comments */ member
Dtokenizer.c83 tok->type_comments = 0; in tok_new()
1501 if (tok->type_comments) { in tok_get()
Dpegen.c1232 tok->type_comments = (flags & PyPARSE_TYPE_COMMENTS) > 0; in _PyPegen_Parser_New()
/third_party/python/Lib/test/
Dtest_type_comments.py228 return ast.parse(source, type_comments=True,
365 ast.parse(source, type_comments=False)
Dtest_unparse.py392 self.check_ast_roundtrip(statement, type_comments=True)
407 self.check_ast_roundtrip(statement, type_comments=True)
/third_party/python/Doc/library/
Dtoken.rst77 ``type_comments=True``.
Dast.rst1894 .. 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/
Dast.py34 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/
D3.8.0b1.rst1026 When using `type_comments=True` in `ast.parse`, treat `# type: ignore`
/third_party/python/Doc/whatsnew/
D3.8.rst582 * ``type_comments=True`` causes it to return the text of :pep:`484` and