cpython/Parser/pegen
Guido van Rossum c001c09e90
bpo-40334: Support type comments (GH-19780)
This implements full support for # type: <type> comments, # type: ignore <stuff> comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
2020-04-30 12:12:19 -07:00
..
parse.c bpo-40334: Support type comments (GH-19780) 2020-04-30 12:12:19 -07:00
parse_string.c bpo-40334: Fix shifting of nested f-strings in the new parser (GH-19771) 2020-04-29 01:43:50 +01:00
parse_string.h bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
peg_api.c bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721) 2020-04-27 18:02:07 +01:00
pegen.c bpo-40334: Support type comments (GH-19780) 2020-04-30 12:12:19 -07:00
pegen.h bpo-40334: Support type comments (GH-19780) 2020-04-30 12:12:19 -07:00